Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangesetList.js
| Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | _onkeytogglefile: function() { | ||||
| var pht = this.getTranslations(); | var pht = this.getTranslations(); | ||||
| this._warnUser(pht('You must select a file to hide or show.')); | this._warnUser(pht('You must select a file to hide or show.')); | ||||
| }, | }, | ||||
| _onkeyopeneditor: function() { | _onkeyopeneditor: function() { | ||||
| var pht = this.getTranslations(); | var pht = this.getTranslations(); | ||||
| var cursor = this._cursorItem; | var cursor = this._cursorItem; | ||||
| var changeset; | |||||
| if (cursor) { | if (cursor) { | ||||
| if (cursor.type == 'file') { | changeset = cursor.changeset; | ||||
| var changeset = cursor.changeset; | } | ||||
| var editor_uri = changeset.getEditorURI(); | |||||
| if (editor_uri === null) { | if (!changeset) { | ||||
| this._warnUser(pht('No external editor is configured.')); | changeset = this._getVisibleChangeset(); | ||||
| } | |||||
| if (!changeset) { | |||||
| this._warnUser(pht('You must select a file to edit.')); | |||||
| return; | return; | ||||
| } | } | ||||
| JX.$U(editor_uri).go(); | var editor_uri = changeset.getEditorURI(); | ||||
| if (editor_uri === null) { | |||||
| this._warnUser(pht('No external editor is configured.')); | |||||
| return; | return; | ||||
| } | } | ||||
| } | |||||
| this._warnUser(pht('You must select a file to edit.')); | JX.$U(editor_uri).go(); | ||||
| }, | }, | ||||
| _onkeycollapse: function() { | _onkeycollapse: function() { | ||||
| var cursor = this._cursorItem; | var cursor = this._cursorItem; | ||||
| if (cursor) { | if (cursor) { | ||||
| if (cursor.type == 'comment') { | if (cursor.type == 'comment') { | ||||
| var inline = cursor.target; | var inline = cursor.target; | ||||
| ▲ Show 20 Lines • Show All 1,465 Lines • Show Last 20 Lines | |||||