Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
| Show First 20 Lines • Show All 901 Lines • ▼ Show 20 Lines | members: { | ||||
| _onClickHeader: function(e) { | _onClickHeader: function(e) { | ||||
| // If the user clicks the actual path name text, don't count this as | // 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. | // a selection action: we want to let them select the path. | ||||
| var path_name = e.getNode('changeset-header-path-name'); | var path_name = e.getNode('changeset-header-path-name'); | ||||
| if (path_name) { | if (path_name) { | ||||
| return; | return; | ||||
| } | } | ||||
| e.prevent(); | // NOTE: Don't prevent or kill the event. If the user has text selected, | ||||
| // clicking a header should clear the selection (and dismiss any inline | |||||
| // context menu, if one exists) as clicking elsewhere in the document | |||||
| // normally would. | |||||
| 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 136 Lines • Show Last 20 Lines | |||||