Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
| Show First 20 Lines • Show All 880 Lines • ▼ Show 20 Lines | redrawFileTree: function() { | ||||
| JX.DOM.setContent(node, hint); | JX.DOM.setContent(node, hint); | ||||
| JX.DOM.alterClass(node, 'diff-tree-path-inlines-visible', is_visible); | JX.DOM.alterClass(node, 'diff-tree-path-inlines-visible', is_visible); | ||||
| JX.DOM.alterClass(node, 'diff-tree-path-inlines-completed', is_completed); | JX.DOM.alterClass(node, 'diff-tree-path-inlines-completed', is_completed); | ||||
| }, | }, | ||||
| _onClickHeader: function(e) { | _onClickHeader: function(e) { | ||||
| // If the user clicks the actual path name text, don't count this as | |||||
| // a selection action: we want to let them select the path. | |||||
| var path_name = e.getNode('changeset-header-path-name'); | |||||
| if (path_name) { | |||||
| return; | |||||
| } | |||||
| e.prevent(); | e.prevent(); | ||||
| if (this._isSelected) { | if (this._isSelected) { | ||||
| this.getChangesetList().selectChangeset(null); | this.getChangesetList().selectChangeset(null); | ||||
| } else { | } else { | ||||
| this.select(false); | this.select(false); | ||||
| } | } | ||||
| }, | }, | ||||
| ▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | _getShowButtonNode: function() { | ||||
| this._showButtonNode = button_node; | this._showButtonNode = button_node; | ||||
| } | } | ||||
| return this._showButtonNode; | return this._showButtonNode; | ||||
| }, | }, | ||||
| _onClickShowButton: function(e) { | _onClickShowButton: function(e) { | ||||
| e.prevent(); | e.prevent(); | ||||
| this.setVisible(true); | |||||
| // We're always showing the changeset, but want to make sure the state | |||||
| // change is persisted on the server. | |||||
| this.toggleVisibility(); | |||||
| }, | }, | ||||
| isVisible: function() { | isVisible: function() { | ||||
| return this._visible; | return this._visible; | ||||
| }, | }, | ||||
| _onundo: function(e) { | |||||
| e.kill(); | |||||
| 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) | .setIsLowImportance(this._isLowImportance) | ||||
| .setIsOwned(this._isOwned) | .setIsOwned(this._isOwned) | ||||
| .setIsLoading(this._isLoading); | .setIsLoading(this._isLoading); | ||||
| Show All 27 Lines | |||||