X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/45c6e40d4312a3bc53fb0c64574d9e5b1f298193..bb204203f5f64dd13b256263fd398e1463d4eaf9:/src/editor/plugins/core/switch.js diff --git a/src/editor/plugins/core/switch.js b/src/editor/plugins/core/switch.js index ff49eb8..edb8e95 100644 --- a/src/editor/plugins/core/switch.js +++ b/src/editor/plugins/core/switch.js @@ -41,7 +41,7 @@ var createSwitchAction = function(createParams) { description = gettext('Switch to') + ' ' + createParams.to.name; return _.extend(state, { - allowed: !!toSwitch, + allowed: !!toSwitch || alreadyInTarget, toggled: alreadyInTarget, description: description, execute: alreadyInTarget ? function() {} : function(callback) {