smartxml: Allow Fragments to refresh their node references using their initial paths
[fnpeditor.git] / src / editor / plugins / core / switch.js
index ff49eb8..edb8e95 100644 (file)
@@ -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) {