Fix creation of execute_button (previously would have no reference due the invalid syntax)

This commit is contained in:
Dannon Baker
2017-09-15 13:06:34 -04:00
parent 44f2828b51
commit 005da343e2
6 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -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