Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
| Show All 31 Lines | construct : function(node) { | ||||
| this._pathParts = data.pathParts; | this._pathParts = data.pathParts; | ||||
| this._icon = data.icon; | this._icon = data.icon; | ||||
| this._editorURI = data.editorURI; | this._editorURI = data.editorURI; | ||||
| this._editorConfigureURI = data.editorConfigureURI; | this._editorConfigureURI = data.editorConfigureURI; | ||||
| this._pathIconIcon = data.pathIconIcon; | this._pathIconIcon = data.pathIconIcon; | ||||
| this._pathIconColor = data.pathIconColor; | this._pathIconColor = data.pathIconColor; | ||||
| this._isLowImportance = data.isLowImportance; | |||||
| this._isOwned = data.isOwned; | |||||
| this._inlines = []; | this._inlines = []; | ||||
| if (data.changesetState) { | if (data.changesetState) { | ||||
| this._loadChangesetState(data.changesetState); | this._loadChangesetState(data.changesetState); | ||||
| } | } | ||||
| }, | }, | ||||
| Show All 24 Lines | members: { | ||||
| _icon: null, | _icon: null, | ||||
| _editorURI: null, | _editorURI: null, | ||||
| _editorConfigureURI: null, | _editorConfigureURI: null, | ||||
| _pathView: null, | _pathView: null, | ||||
| _pathIconIcon: null, | _pathIconIcon: null, | ||||
| _pathIconColor: null, | _pathIconColor: null, | ||||
| _isLowImportance: null, | |||||
| _isOwned: null, | |||||
| getEditorURI: function() { | getEditorURI: function() { | ||||
| return this._editorURI; | return this._editorURI; | ||||
| }, | }, | ||||
| getEditorConfigureURI: function() { | getEditorConfigureURI: function() { | ||||
| return this._editorConfigureURI; | return this._editorConfigureURI; | ||||
| }, | }, | ||||
| ▲ Show 20 Lines • Show All 807 Lines • ▼ Show 20 Lines | _onundo: function(e) { | ||||
| e.kill(); | e.kill(); | ||||
| this.toggleVisibility(); | this.toggleVisibility(); | ||||
| }, | }, | ||||
| getPathView: function() { | getPathView: function() { | ||||
| if (!this._pathView) { | if (!this._pathView) { | ||||
| var view = new JX.DiffPathView() | var view = new JX.DiffPathView() | ||||
| .setChangeset(this) | .setChangeset(this) | ||||
| .setPath(this._pathParts); | .setPath(this._pathParts) | ||||
| .setIsLowImportance(this._isLowImportance) | |||||
| .setIsOwned(this._isOwned); | |||||
| view.getIcon() | view.getIcon() | ||||
| .setIcon(this._pathIconIcon) | .setIcon(this._pathIconIcon) | ||||
| .setColor(this._pathIconColor); | .setColor(this._pathIconColor); | ||||
| this._pathView = view; | this._pathView = view; | ||||
| } | } | ||||
| Show All 19 Lines | |||||