Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangesetList.js
Show All 35 Lines | JX.Stratcom.listen( | ||||
['differential-inline-comment', 'differential-inline-done'], | ['differential-inline-comment', 'differential-inline-done'], | ||||
ondone); | ondone); | ||||
var ondelete = JX.bind(this, this._ifawake, this._onaction, 'delete'); | var ondelete = JX.bind(this, this._ifawake, this._onaction, 'delete'); | ||||
JX.Stratcom.listen( | JX.Stratcom.listen( | ||||
'click', | 'click', | ||||
['differential-inline-comment', 'differential-inline-delete'], | ['differential-inline-comment', 'differential-inline-delete'], | ||||
ondelete); | ondelete); | ||||
var onreply = JX.bind(this, this._ifawake, this._onaction, 'reply'); | |||||
JX.Stratcom.listen( | |||||
'click', | |||||
['differential-inline-comment', 'differential-inline-reply'], | |||||
onreply); | |||||
}, | }, | ||||
properties: { | properties: { | ||||
translations: null, | translations: null, | ||||
inlineURI: null | inlineURI: null | ||||
}, | }, | ||||
members: { | members: { | ||||
▲ Show 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | _onaction: function(action, e) { | ||||
inline.edit(); | inline.edit(); | ||||
break; | break; | ||||
case 'done': | case 'done': | ||||
inline.toggleDone(); | inline.toggleDone(); | ||||
break; | break; | ||||
case 'delete': | case 'delete': | ||||
inline.delete(is_ref); | inline.delete(is_ref); | ||||
break; | break; | ||||
case 'reply': | |||||
inline.reply(); | |||||
break; | |||||
} | } | ||||
}, | }, | ||||
redrawPreview: function() { | redrawPreview: function() { | ||||
// TODO: This isn't the cleanest way to find the preview form, but | // TODO: This isn't the cleanest way to find the preview form, but | ||||
// rendering no longer has direct access to it. | // rendering no longer has direct access to it. | ||||
var forms = JX.DOM.scry(document.body, 'form', 'transaction-append'); | var forms = JX.DOM.scry(document.body, 'form', 'transaction-append'); | ||||
if (forms.length) { | if (forms.length) { | ||||
Show All 33 Lines |