Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/transactions/behavior-comment-actions.js
| Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | function onresponse(response) { | ||||
| } | } | ||||
| var panel = JX.$(config.panelID); | var panel = JX.$(config.panelID); | ||||
| if (!response.xactions.length) { | if (!response.xactions.length) { | ||||
| JX.DOM.hide(panel); | JX.DOM.hide(panel); | ||||
| } else { | } else { | ||||
| JX.DOM.setContent( | JX.DOM.setContent( | ||||
| JX.$(config.timelineID), | JX.$(config.timelineID), | ||||
| JX.$H(response.xactions.join(''))); | [ | ||||
| JX.$H(response.xactions.join('')), | |||||
| JX.$H(response.previewContent) | |||||
| ]); | |||||
| JX.DOM.show(panel); | JX.DOM.show(panel); | ||||
| } | } | ||||
| } | } | ||||
| JX.DOM.listen(form_node, ['submit', 'didSyntheticSubmit'], null, function() { | JX.DOM.listen(form_node, ['submit', 'didSyntheticSubmit'], null, function() { | ||||
| input_node.value = serialize_actions(); | input_node.value = serialize_actions(); | ||||
| }); | }); | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||