Skip to content
Snippets Groups Projects
Commit 78712f09 authored by juanf's avatar juanf
Browse files

SSDM-2435 : Bugfixes

SVN: 34812
parent b25e52aa
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,21 @@ function DataSetFormController() { ...@@ -42,6 +42,21 @@ function DataSetFormController() {
// Form Submit // Form Submit
// //
this.submit = function() { this.submit = function() {
//
// Check upload is finish
//
if(Uploader.uploadsInProgress()) {
Util.blockUI();
Util.showError("Please wait the upload to finish.", function() { Util.unblockUI(); });
return;
}
if(dataSetFormModel.files.length === 0) {
Util.blockUI();
Util.showError("You should upload at least one file.", function() { Util.unblockUI(); });
return;
}
Util.blockUI(); Util.blockUI();
var _this = this; var _this = this;
var metadata = dataSetFormModel.dataSet.properties; var metadata = dataSetFormModel.dataSet.properties;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment