diff --git a/core/src/plugins/access.fs/fsActions.xml b/core/src/plugins/access.fs/fsActions.xml index 638620affa..f0e0ca7f17 100644 --- a/core/src/plugins/access.fs/fsActions.xml +++ b/core/src/plugins/access.fs/fsActions.xml @@ -30,14 +30,16 @@ ajaxplorer.updateContextData(path); } ]]> - - + + + + @@ -85,7 +87,9 @@ modal.showDialogForm('Upload', uploader.formId, dialogOnOpen, null, dialogOnComplete, true, true); } ]]> - + + + @@ -191,7 +195,10 @@ } } ]]> - + + + + @@ -274,7 +281,7 @@ - + @@ -479,7 +486,10 @@ ]]> - + + + + @@ -509,7 +519,9 @@ ]]> - + + + @@ -526,6 +538,7 @@ var orig = ajaxplorer.getUserSelection().getSelectionSource(); } var callback = function(node, newValue){ + if(!node) node = ajaxplorer.getUserSelection().getUniqueNode(); var filename = node.getPath(); var conn = new Connexion(); conn.addParameter('get_action', 'rename'); @@ -539,7 +552,14 @@ ajaxplorer.getUserSelection().setSelectionSource(orig); } }; - if(ajaxplorer.getUserSelection() && ajaxplorer.getUserSelection().getSelectionSource() && ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition) {ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition(callback);} + if(ajaxplorer.getUserSelection() && ajaxplorer.getUserSelection().getSelectionSource() && ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition) { + ajaxplorer.getUserSelection().getSelectionSource().switchCurrentLabelToEdition(callback); + }else{ + var test = ajaxplorer._focusables.detect(function(obj){return obj.hasFocus;}); + if (test && test.switchCurrentLabelToEdition){ + test.switchCurrentLabelToEdition(callback); + } + } ]]>