Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangesetList.js
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | JX.Stratcom.listen( | ||||
| null, | null, | ||||
| onrangeup); | onrangeup); | ||||
| }, | }, | ||||
| properties: { | properties: { | ||||
| translations: null, | translations: null, | ||||
| inlineURI: null, | inlineURI: null, | ||||
| inlineListURI: null, | inlineListURI: null, | ||||
| isStandalone: false | isStandalone: false, | ||||
| formationView: null | |||||
| }, | }, | ||||
| members: { | members: { | ||||
| _initialized: false, | _initialized: false, | ||||
| _asleep: true, | _asleep: true, | ||||
| _changesets: null, | _changesets: null, | ||||
| _cursorItem: null, | _cursorItem: null, | ||||
| Show All 36 Lines | wake: function() { | ||||
| this._asleep = false; | this._asleep = false; | ||||
| this._redrawFocus(); | this._redrawFocus(); | ||||
| this._redrawSelection(); | this._redrawSelection(); | ||||
| this._bannerChangeset = null; | this._bannerChangeset = null; | ||||
| this._redrawBanner(); | this._redrawBanner(); | ||||
| this._redrawFiletree(); | |||||
| if (this._initialized) { | if (this._initialized) { | ||||
| return; | return; | ||||
| } | } | ||||
| this._initialized = true; | this._initialized = true; | ||||
| var pht = this.getTranslations(); | var pht = this.getTranslations(); | ||||
| // We may be viewing the normal "/D123" view (with all the changesets) | // We may be viewing the normal "/D123" view (with all the changesets) | ||||
| ▲ Show 20 Lines • Show All 1,794 Lines • ▼ Show 20 Lines | _getVisibleChangeset: function() { | ||||
| // ...and ends below the line, this is the current visible changeset. | // ...and ends below the line, this is the current visible changeset. | ||||
| if ((c.pos.y + c.dim.y) >= (s.y + detect_height)) { | if ((c.pos.y + c.dim.y) >= (s.y + detect_height)) { | ||||
| return changeset; | return changeset; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return null; | return null; | ||||
| }, | |||||
| _redrawFiletree : function() { | |||||
| var formation = this.getFormationView(); | |||||
| if (!formation) { | |||||
| return; | |||||
| } | } | ||||
| var filetree = formation.getColumn(0); | |||||
| var flank = filetree.getFlank(); | |||||
| var flank_body = flank.getBodyNode(); | |||||
| var items = []; | |||||
| for (var ii = 0; ii < this._changesets.length; ii++) { | |||||
| var changeset = this._changesets[ii]; | |||||
| var node = JX.$N('div', {}, changeset.getDisplayPath()); | |||||
| items.push(node); | |||||
| } | |||||
| JX.DOM.setContent(flank_body, items); | |||||
| } | |||||
| } | } | ||||
| }); | }); | ||||