Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffInline.js
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | bindToRow: function(row) { | ||||
| this._isSynthetic = data.isSynthetic; | this._isSynthetic = data.isSynthetic; | ||||
| this._isDraftDone = data.isDraftDone; | this._isDraftDone = data.isDraftDone; | ||||
| this._changesetID = data.changesetID; | this._changesetID = data.changesetID; | ||||
| this._isNew = false; | this._isNew = false; | ||||
| this._snippet = data.snippet; | this._snippet = data.snippet; | ||||
| this._menuItems = data.menuItems; | this._menuItems = data.menuItems; | ||||
| this._documentEngineKey = data.documentEngineKey; | this._documentEngineKey = data.documentEngineKey; | ||||
| this._startOffset = data.startOffset; | this._startOffset = data.startOffset; | ||||
| this._endOffset = data.endOffset; | this._endOffset = data.endOffset; | ||||
| this._isEditing = data.isEditing; | this._isEditing = data.isEditing; | ||||
| if (this._isEditing) { | if (this._isEditing) { | ||||
| // NOTE: The "original" shipped down in the DOM may reflect a draft | // NOTE: The "original" shipped down in the DOM may reflect a draft | ||||
| // which we're currently editing. This flow is a little clumsy, but | // which we're currently editing. This flow is a little clumsy, but | ||||
| ▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | members: { | ||||
| bindToRange: function(data) { | bindToRange: function(data) { | ||||
| this._displaySide = data.displaySide; | this._displaySide = data.displaySide; | ||||
| this._number = parseInt(data.number, 10); | this._number = parseInt(data.number, 10); | ||||
| this._length = parseInt(data.length, 10); | this._length = parseInt(data.length, 10); | ||||
| this._isNewFile = data.isNewFile; | this._isNewFile = data.isNewFile; | ||||
| this._changesetID = data.changesetID; | this._changesetID = data.changesetID; | ||||
| this._isNew = true; | this._isNew = true; | ||||
| this._startOffset = data.startOffset; | this._startOffset = null; | ||||
| this._endOffset = data.endOffset; | this._endOffset = null; | ||||
| // Insert the comment after any other comments which already appear on | // Insert the comment after any other comments which already appear on | ||||
| // the same row. | // the same row. | ||||
| var parent_row = JX.DOM.findAbove(data.target, 'tr'); | var parent_row = JX.DOM.findAbove(data.target, 'tr'); | ||||
| var target_row = parent_row.nextSibling; | var target_row = parent_row.nextSibling; | ||||
| while (target_row && JX.Stratcom.hasSigil(target_row, 'inline-row')) { | while (target_row && JX.Stratcom.hasSigil(target_row, 'inline-row')) { | ||||
| target_row = target_row.nextSibling; | target_row = target_row.nextSibling; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 839 Lines • Show Last 20 Lines | |||||