dlg.@gr.grnet.pithos.web.client.FileUploadDialog::setInProgress(Z)(true);
up.start();
app.@gr.grnet.pithos.web.client.Pithos::showUploadIndicator()();
- app.@gr.grnet.pithos.web.client.Pithos::showUploadAlert(I)(files.length);
+ if (!dlg.@gr.grnet.pithos.web.client.FileUploadDialog::isVisible()())
+ app.@gr.grnet.pithos.web.client.Pithos::showUploadAlert(I)(files.length);
},
FilesRemoved: function(up, files) {
up.settings.url = file.url + + "?X-Auth-Token=" + encodeURIComponent(token);
},
+ UploadProgress: function(up, file) {
+ $wnd.$('#upload_alert_progress_bar').css('width', up.total.percent + '%');
+ $wnd.$('#upload_alert_percent').html(up.total.percent + '%');
+ },
+
FileUploaded: function(up, file, response) {
if ($wnd.console && $wnd.console.log) {
$wnd.console.log('File ' + file.name + ' uploaded');
right: 1px;
top: 2px;
}
+
+.uploadAlertProgress {
+ display: block;
+ float: left;
+}
+
+.uploadAlertPercent {
+ position: absolute;
+ left: 90px;
+}
\ No newline at end of file
String uploadAlertLink();
+ String uploadAlertProgress();
+
+ String uploadAlertPercent();
+
String uploadAlertClose();
}
});
close.addStyleName(Pithos.resources.pithosCss().uploadAlertClose());
content.add(close);
+
+ FlowPanel progress = new FlowPanel();
+ progress.addStyleName("plupload_progress");
+ progress.addStyleName(Pithos.resources.pithosCss().uploadAlertProgress());
+ FlowPanel progress_container = new FlowPanel();
+ progress_container.addStyleName("plupload_progress_container");
+ progress.add(progress_container);
+ FlowPanel progress_bar = new FlowPanel();
+ progress_bar.getElement().setId("upload_alert_progress_bar");
+ progress_bar.addStyleName("plupload_progress_bar");
+ progress_container.add(progress_bar);
+ content.add(progress);
+
+ HTML percent = new HTML();
+ percent.getElement().setId("upload_alert_percent");
+ percent.addStyleName(Pithos.resources.pithosCss().uploadAlertPercent());
+ content.add(percent);
+
add(content);
}
}