Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/externals/javelin/lib/Workflow.js
| Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | _dosubmit : function(form, button) { | ||||
| active._form = form; | active._form = form; | ||||
| var e = active.invoke('submit', {form: form, data: data}); | var e = active.invoke('submit', {form: form, data: data}); | ||||
| if (!e.getStopped()) { | if (!e.getStopped()) { | ||||
| // NOTE: Don't remove the current dialog yet because additional | // NOTE: Don't remove the current dialog yet because additional | ||||
| // handlers may still want to access the nodes. | // handlers may still want to access the nodes. | ||||
| // Disable whatever button the user clicked to prevent duplicate | |||||
| // submission mistakes when you accidentally . See T11145. | |||||
| button.disabled = true; | |||||
| active | active | ||||
| .setURI(form.getAttribute('action') || active.getURI()) | .setURI(form.getAttribute('action') || active.getURI()) | ||||
| .setDataWithListOfPairs(data) | .setDataWithListOfPairs(data) | ||||
| .start(); | .start(); | ||||
| } | } | ||||
| }, | }, | ||||
| _getActiveWorkflow : function() { | _getActiveWorkflow : function() { | ||||
| var stack = JX.Workflow._stack; | var stack = JX.Workflow._stack; | ||||
| ▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines | |||||