Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/externals/javelin/lib/Workflow.js
| Show First 20 Lines • Show All 146 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 | // Disable whatever button the user clicked to prevent duplicate | ||||
| // submission mistakes when you accidentally . See T11145. | // submission mistakes when you accidentally click a button multiple | ||||
| // times. See T11145. | |||||
| button.disabled = true; | button.disabled = true; | ||||
| active | active | ||||
| .setURI(form.getAttribute('action') || active.getURI()) | .setURI(form.getAttribute('action') || active.getURI()) | ||||
| .setDataWithListOfPairs(data) | .setDataWithListOfPairs(data) | ||||
| .start(); | .start(); | ||||
| } | } | ||||
| }, | }, | ||||
| ▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines | |||||