Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffInline.js
| Show All 16 Lines | members: { | ||||
| _hidden: false, | _hidden: false, | ||||
| _number: null, | _number: null, | ||||
| _length: null, | _length: null, | ||||
| _displaySide: null, | _displaySide: null, | ||||
| _isNewFile: null, | _isNewFile: null, | ||||
| _undoRow: null, | _undoRow: null, | ||||
| _replyToCommentPHID: null, | _replyToCommentPHID: null, | ||||
| _originalText: null, | _originalText: null, | ||||
| _snippet: null, | |||||
| _isDeleted: false, | _isDeleted: false, | ||||
| _isInvisible: false, | _isInvisible: false, | ||||
| _isLoading: false, | _isLoading: false, | ||||
| _changeset: null, | _changeset: null, | ||||
| _objective: null, | _objective: null, | ||||
| Show All 37 Lines | bindToRow: function(row) { | ||||
| this._replyToCommentPHID = data.replyToCommentPHID; | this._replyToCommentPHID = data.replyToCommentPHID; | ||||
| this._isDraft = data.isDraft; | this._isDraft = data.isDraft; | ||||
| this._isFixed = data.isFixed; | this._isFixed = data.isFixed; | ||||
| this._isGhost = data.isGhost; | this._isGhost = data.isGhost; | ||||
| this._changesetID = data.changesetID; | this._changesetID = data.changesetID; | ||||
| this._isNew = false; | this._isNew = false; | ||||
| this._snippet = data.snippet; | |||||
| this.setInvisible(false); | this.setInvisible(false); | ||||
| this.updateObjective(); | this.updateObjective(); | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| ▲ Show 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | updateObjective: function() { | ||||
| objective.hide(); | objective.hide(); | ||||
| return; | return; | ||||
| } | } | ||||
| var pht = changeset.getChangesetList().getTranslations(); | var pht = changeset.getChangesetList().getTranslations(); | ||||
| var icon = 'fa-comment'; | var icon = 'fa-comment'; | ||||
| var color = 'bluegrey'; | var color = 'bluegrey'; | ||||
| var tooltip = null; | var tooltip = this._snippet; | ||||
| var anchor = this._row; | var anchor = this._row; | ||||
| if (this._isEditing) { | if (this._isEditing) { | ||||
| icon = 'fa-star'; | icon = 'fa-star'; | ||||
| color = 'pink'; | color = 'pink'; | ||||
| tooltip = pht('Editing Comment'); | tooltip = pht('Editing Comment'); | ||||
| // If we're editing, anchor to the row with the editor instead of the | // If we're editing, anchor to the row with the editor instead of the | ||||
| ▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines | |||||