Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffInline.js
Show First 20 Lines • Show All 662 Lines • ▼ Show 20 Lines | _drawContentRows: function(rows) { | ||||
return this._drawRows(rows, null, 'content'); | return this._drawRows(rows, null, 'content'); | ||||
}, | }, | ||||
_drawEditRows: function(rows) { | _drawEditRows: function(rows) { | ||||
this.setEditing(true); | this.setEditing(true); | ||||
this._editRow = this._drawRows(rows, null, 'edit'); | this._editRow = this._drawRows(rows, null, 'edit'); | ||||
this._drawSuggestionState(this._editRow); | this._drawSuggestionState(this._editRow); | ||||
JX.log(this._originalState); | |||||
this.setHasSuggestion(this._originalState.hasSuggestion); | this.setHasSuggestion(this._originalState.hasSuggestion); | ||||
}, | }, | ||||
_drawRows: function(rows, cursor, type) { | _drawRows: function(rows, cursor, type) { | ||||
var first_row = JX.DOM.scry(rows, 'tr')[0]; | var first_row = JX.DOM.scry(rows, 'tr')[0]; | ||||
var row = first_row; | var row = first_row; | ||||
var anchor = cursor || this._row; | var anchor = cursor || this._row; | ||||
cursor = cursor || this._row.nextSibling; | cursor = cursor || this._row.nextSibling; | ||||
▲ Show 20 Lines • Show All 503 Lines • Show Last 20 Lines |