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

SP-909 / BIS-524 : ELN UI - Bug Fixes.

SVN: 29853
parent 0ea1bfde
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,9 @@ $.extend(DefaultProfile.prototype, {
groupOfMenuItems.menuItems.push(menuItem);
}
}
this.menuStructure.push(groupOfMenuItems);
if(groupOfMenuItems.menuItems.length > 0) {
this.menuStructure.push(groupOfMenuItems);
}
}
}
//
......
......@@ -57,6 +57,7 @@ function SampleTable(mainController, sampleTableId, profile, sampleTypeCode,insp
var localReference = this;
$("#fileToRegister").unbind('change');
$("#fileToRegister").change(function() {
Util.blockUI();
Util.fileUpload("fileToRegister", function(result) {
//Code After the upload
localReference.mainController.openbisServer.uploadedSamplesInfo(localReference.sampleTypeCode, "sample-file-upload",
......@@ -111,9 +112,9 @@ function SampleTable(mainController, sampleTableId, profile, sampleTypeCode,insp
this.updateSamples = function() {
var localReference = this;
Util.blockUI();
$("#fileToUpdate").unbind('change');
$("#fileToUpdate").change(function() {
Util.blockUI();
var finalCallback = function(data) {
if(data.error) {
Util.showError(data.error.message, function() {Util.unblockUI();});
......
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