Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/transactions/behavior-transaction-list.js
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | JX.DOM.listen(list, 'click', 'transaction-edit', function(e) { | ||||
| JX.Workflow.newFromLink(e.getTarget()) | JX.Workflow.newFromLink(e.getTarget()) | ||||
| .setData({anchor: e.getNodeData('transaction').anchor}) | .setData({anchor: e.getNodeData('transaction').anchor}) | ||||
| .setHandler(ontransactions) | .setHandler(ontransactions) | ||||
| .start(); | .start(); | ||||
| e.kill(); | e.kill(); | ||||
| }); | }); | ||||
| JX.DOM.listen(list, 'click', 'transaction-detail', function(e) { | |||||
| if (!e.isNormalClick()) { | |||||
| return; | |||||
| } | |||||
| JX.Workflow.newFromLink(e.getTarget()) | |||||
| .setData({anchor: e.getData('anchor')}) | |||||
| .setHandler(ontransactions) | |||||
| .start(); | |||||
| e.kill(); | |||||
| }); | |||||
| JX.Stratcom.listen( | JX.Stratcom.listen( | ||||
| ['submit', 'didSyntheticSubmit'], | ['submit', 'didSyntheticSubmit'], | ||||
| 'transaction-append', | 'transaction-append', | ||||
| function(e) { | function(e) { | ||||
| var form = e.getTarget(); | var form = e.getTarget(); | ||||
| if (JX.Stratcom.getData(form).objectPHID != config.objectPHID) { | if (JX.Stratcom.getData(form).objectPHID != config.objectPHID) { | ||||
| // This indicates there are several forms on the page, and the user | // This indicates there are several forms on the page, and the user | ||||
| // submitted a different one than the one we're in control of. | // submitted a different one than the one we're in control of. | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||