Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
| Show First 20 Lines • Show All 789 Lines • ▼ Show 20 Lines | _queryInline: function(field, value) { | ||||
| // If we haven't found a matching inline yet, rebuild all the inlines | // If we haven't found a matching inline yet, rebuild all the inlines | ||||
| // present in the document, then look again. | // present in the document, then look again. | ||||
| this._rebuildAllInlines(); | this._rebuildAllInlines(); | ||||
| return this._findInline(field, value); | return this._findInline(field, value); | ||||
| }, | }, | ||||
| _findInline: function(field, value) { | _findInline: function(field, value) { | ||||
| for (var ii = 0; ii < this._inlines.length; ii++) { | var inlines = this.getInlines(); | ||||
| var inline = this._inlines[ii]; | |||||
| for (var ii = 0; ii < inlines.length; ii++) { | |||||
| var inline = inlines[ii]; | |||||
| var target; | var target; | ||||
| switch (field) { | switch (field) { | ||||
| case 'id': | case 'id': | ||||
| target = inline.getID(); | target = inline.getID(); | ||||
| break; | break; | ||||
| case 'phid': | case 'phid': | ||||
| target = inline.getPHID(); | target = inline.getPHID(); | ||||
| Show All 31 Lines | _rebuildAllInlines: function() { | ||||
| // As a side effect, this builds any missing inline objects and adds | // As a side effect, this builds any missing inline objects and adds | ||||
| // them to this Changeset's list of inlines. | // them to this Changeset's list of inlines. | ||||
| this.getInlineForRow(row); | this.getInlineForRow(row); | ||||
| } | } | ||||
| }, | }, | ||||
| redrawFileTree: function() { | redrawFileTree: function() { | ||||
| var inlines = this._inlines; | var inlines = this.getInlines(); | ||||
| var done = []; | var done = []; | ||||
| var undone = []; | var undone = []; | ||||
| var inline; | var inline; | ||||
| for (var ii = 0; ii < inlines.length; ii++) { | for (var ii = 0; ii < inlines.length; ii++) { | ||||
| inline = inlines[ii]; | inline = inlines[ii]; | ||||
| if (inline.isDeleted()) { | if (inline.isDeleted()) { | ||||
| ▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines | |||||