Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangesetList.js
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | members: { | ||||
_hoverOrigin: null, | _hoverOrigin: null, | ||||
_hoverTarget: null, | _hoverTarget: null, | ||||
_rangeActive: false, | _rangeActive: false, | ||||
_rangeOrigin: null, | _rangeOrigin: null, | ||||
_rangeTarget: null, | _rangeTarget: null, | ||||
_bannerNode: null, | _bannerNode: null, | ||||
_showObjectives: false, | |||||
sleep: function() { | sleep: function() { | ||||
this._asleep = true; | this._asleep = true; | ||||
this._redrawFocus(); | this._redrawFocus(); | ||||
this._redrawSelection(); | this._redrawSelection(); | ||||
this.resetHover(); | this.resetHover(); | ||||
this._objectives.hide(); | this._objectives.hide(); | ||||
}, | }, | ||||
wake: function() { | wake: function() { | ||||
this._asleep = false; | this._asleep = false; | ||||
this._redrawFocus(); | this._redrawFocus(); | ||||
this._redrawSelection(); | this._redrawSelection(); | ||||
if (this._showObjectives) { | |||||
this._objectives.show(); | this._objectives.show(); | ||||
} | |||||
if (this._initialized) { | if (this._initialized) { | ||||
return; | return; | ||||
} | } | ||||
this._initialized = true; | this._initialized = true; | ||||
var pht = this.getTranslations(); | var pht = this.getTranslations(); | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | wake: function() { | ||||
label = pht('Mark or unmark selected inline comment as done.'); | label = pht('Mark or unmark selected inline comment as done.'); | ||||
this._installKey('w', label, this._onkeydone); | this._installKey('w', label, this._onkeydone); | ||||
label = pht('Hide or show inline comment.'); | label = pht('Hide or show inline comment.'); | ||||
this._installKey('q', label, this._onkeyhide); | this._installKey('q', label, this._onkeyhide); | ||||
}, | }, | ||||
setShowObjectives: function(show) { | |||||
this._showObjectives = show; | |||||
return this; | |||||
}, | |||||
isAsleep: function() { | isAsleep: function() { | ||||
return this._asleep; | return this._asleep; | ||||
}, | }, | ||||
getObjectives: function() { | getObjectives: function() { | ||||
return this._objectives; | return this._objectives; | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 1,179 Lines • Show Last 20 Lines |