Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangesetList.js
| Show All 11 Lines | construct: function() { | ||||
| var onload = JX.bind(this, this._ifawake, this._onload); | var onload = JX.bind(this, this._ifawake, this._onload); | ||||
| JX.Stratcom.listen('click', 'differential-load', onload); | JX.Stratcom.listen('click', 'differential-load', onload); | ||||
| var onmore = JX.bind(this, this._ifawake, this._onmore); | var onmore = JX.bind(this, this._ifawake, this._onmore); | ||||
| JX.Stratcom.listen('click', 'show-more', onmore); | JX.Stratcom.listen('click', 'show-more', onmore); | ||||
| var onmenu = JX.bind(this, this._ifawake, this._onmenu); | var onmenu = JX.bind(this, this._ifawake, this._onmenu); | ||||
| JX.Stratcom.listen('click', 'differential-view-options', onmenu); | JX.Stratcom.listen('click', 'differential-view-options', onmenu); | ||||
| var onhide = JX.bind(this, this._ifawake, this._onhide); | |||||
| JX.Stratcom.listen('click', 'hide-inline', onhide); | |||||
| var onreveal = JX.bind(this, this._ifawake, this._onreveal); | |||||
| JX.Stratcom.listen('click', 'reveal-inline', onreveal); | |||||
| }, | }, | ||||
| properties: { | properties: { | ||||
| translations: null | translations: null, | ||||
| inlineURI: null | |||||
| }, | }, | ||||
| members: { | members: { | ||||
| _asleep: true, | _asleep: true, | ||||
| _changesets: null, | _changesets: null, | ||||
| sleep: function() { | sleep: function() { | ||||
| this._asleep = true; | this._asleep = true; | ||||
| ▲ Show 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | _onmenu: function(e) { | ||||
| // Do nothing when there is no diff shown in the table. For example, | // Do nothing when there is no diff shown in the table. For example, | ||||
| // the file is binary. | // the file is binary. | ||||
| } | } | ||||
| }); | }); | ||||
| data.menu = menu; | data.menu = menu; | ||||
| menu.open(); | menu.open(); | ||||
| } | }, | ||||
| _onhide: function(e) { | |||||
| this._onhidereveal(e, true); | |||||
| }, | |||||
| _onreveal: function(e) { | |||||
| this._onhidereveal(e, false); | |||||
| }, | |||||
| _onhidereveal: function(e, is_hide) { | |||||
| e.kill(); | |||||
| var node = e.getNode('differential-changeset'); | |||||
| var changeset = this.getChangesetForNode(node); | |||||
| var inline_node = e.getNode('inline-row'); | |||||
| var inline = changeset.getInlineForRow(inline_node); | |||||
| inline.setHidden(is_hide); | |||||
| } | |||||
| } | } | ||||
| }); | }); | ||||