mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
removed bug with missing return
This commit is contained in:
@@ -592,13 +592,15 @@ var FolderToolbarView = Backbone.View.extend({
|
||||
// need to check which paths to call
|
||||
var that = this;
|
||||
var popped_item = paths.pop();
|
||||
if (typeof popped_item === "undefined") {
|
||||
if (typeof popped_item == "undefined") {
|
||||
if (this.options.chain_call_control.failed_number === 0){
|
||||
mod_toastr.success('Selected folders and their contents imported into the current folder');
|
||||
Galaxy.modal.hide();
|
||||
} else {
|
||||
// TODO better error report
|
||||
mod_toastr.error('Something went wrong :(');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
var promise = $.when($.post('/api/libraries/datasets?encoded_folder_id=' + that.id +
|
||||
'&source=' + source +
|
||||
|
||||
Reference in New Issue
Block a user