Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
Show All 29 Lines | construct : function(node) { | ||||
this._displayPath = JX.$H(data.displayPath); | this._displayPath = JX.$H(data.displayPath); | ||||
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._pathIconColor = data.pathIconColor; | |||||
this._inlines = []; | this._inlines = []; | ||||
if (data.changesetState) { | if (data.changesetState) { | ||||
this._loadChangesetState(data.changesetState); | this._loadChangesetState(data.changesetState); | ||||
} | } | ||||
}, | }, | ||||
members: { | members: { | ||||
Show All 21 Lines | members: { | ||||
_changesetList: null, | _changesetList: null, | ||||
_icon: null, | _icon: null, | ||||
_editorURI: null, | _editorURI: null, | ||||
_editorConfigureURI: null, | _editorConfigureURI: null, | ||||
_pathView: null, | _pathView: null, | ||||
_pathIconIcon: null, | |||||
_pathIconColor: 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 809 Lines • ▼ Show 20 Lines | members: { | ||||
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); | ||||
view.getIcon() | view.getIcon() | ||||
.setIcon(this.getIcon()); | .setIcon(this._pathIconIcon) | ||||
.setColor(this._pathIconColor); | |||||
this._pathView = view; | this._pathView = view; | ||||
} | } | ||||
return this._pathView; | return this._pathView; | ||||
}, | }, | ||||
select: function(scroll) { | select: function(scroll) { | ||||
Show All 15 Lines |