mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix creation of execute_button (previously would have no reference due the invalid syntax)
This commit is contained in:
@@ -99,23 +99,23 @@ define([ 'utils/utils', 'mvc/ui/ui-misc', 'mvc/ui/ui-modal', 'mvc/tool/tool-form
|
||||
var self = this;
|
||||
var options = form.model.attributes;
|
||||
// build execute button
|
||||
options.buttons = {
|
||||
execute: execute_btn = new Ui.Button({
|
||||
var execute_button = new Ui.Button({
|
||||
icon : 'fa-check',
|
||||
tooltip : 'Execute: ' + options.name + ' (' + options.version + ')',
|
||||
title : 'Execute',
|
||||
cls : 'btn btn-primary ui-clear-float',
|
||||
wait_cls : 'btn btn-info ui-clear-float',
|
||||
onclick : function() {
|
||||
execute_btn.wait();
|
||||
execute_button.wait();
|
||||
form.portlet.disable();
|
||||
self.submit( options, function() {
|
||||
execute_btn.unwait();
|
||||
execute_button.unwait();
|
||||
form.portlet.enable();
|
||||
} );
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
options.buttons = { execute: execute_button };
|
||||
|
||||
// remap feature
|
||||
if ( options.job_id && options.job_remap ) {
|
||||
options.inputs.push({
|
||||
@@ -265,4 +265,4 @@ define([ 'utils/utils', 'mvc/ui/ui-misc', 'mvc/ui/ui-modal', 'mvc/tool/tool-form
|
||||
return {
|
||||
View: View
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user