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._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 | ||||
| // reasonable until some future change moves away from "send down | // reasonable until some future change moves away from "send down | ||||
| // the inline, then immediately click edit". | // the inline, then immediately click edit". | ||||
| this.edit(this._originalText, true); | this.edit(null, true); | ||||
| } else { | } else { | ||||
| this.setInvisible(false); | this.setInvisible(false); | ||||
| } | } | ||||
| this._startDrafts(); | this._startDrafts(); | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| ▲ Show 20 Lines • Show All 764 Lines • Show Last 20 Lines | |||||