Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | _onresponse: function(sequence, response) { | ||||
this._onchangesetresponse(response); | this._onchangesetresponse(response); | ||||
}, | }, | ||||
_onchangesetresponse: function(response) { | _onchangesetresponse: function(response) { | ||||
// Code shared by autoload and context responses. | // Code shared by autoload and context responses. | ||||
this._loadChangesetState(response); | this._loadChangesetState(response); | ||||
JX.Stratcom.invoke('differential-inline-comment-refresh'); | |||||
this._rebuildAllInlines(); | this._rebuildAllInlines(); | ||||
JX.Stratcom.invoke('resize'); | JX.Stratcom.invoke('resize'); | ||||
}, | }, | ||||
_loadChangesetState: function(state) { | _loadChangesetState: function(state) { | ||||
if (state.coverage) { | if (state.coverage) { | ||||
for (var k in state.coverage) { | for (var k in state.coverage) { | ||||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | getInlines: function() { | ||||
if (this._inlines === null) { | if (this._inlines === null) { | ||||
this._rebuildAllInlines(); | this._rebuildAllInlines(); | ||||
} | } | ||||
return this._inlines; | return this._inlines; | ||||
}, | }, | ||||
_rebuildAllInlines: function() { | _rebuildAllInlines: function() { | ||||
if (this._inlines === null) { | |||||
this._inlines = []; | this._inlines = []; | ||||
} | |||||
var rows = JX.DOM.scry(this._node, 'tr'); | var rows = JX.DOM.scry(this._node, 'tr'); | ||||
var ii; | var ii; | ||||
for (ii = 0; ii < rows.length; ii++) { | for (ii = 0; ii < rows.length; ii++) { | ||||
var row = rows[ii]; | var row = rows[ii]; | ||||
if (this._getRowType(row) != 'comment') { | if (this._getRowType(row) != 'comment') { | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |