From bf5d9a960f70674ba9c46620d03b92658a99351c Mon Sep 17 00:00:00 2001 From: cdujeu Date: Wed, 18 Jan 2017 16:21:42 +0100 Subject: [PATCH] Fix #1319, enable Copy action on readonly files. --- core/src/plugins/access.fs/fsActions.xml | 68 ++++++++++++------------ 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/core/src/plugins/access.fs/fsActions.xml b/core/src/plugins/access.fs/fsActions.xml index 815057458f..3b1e689e86 100644 --- a/core/src/plugins/access.fs/fsActions.xml +++ b/core/src/plugins/access.fs/fsActions.xml @@ -20,13 +20,13 @@ path = window.actionArguments[0]; if(Object.isString(path)){path = new AjxpNode(path,false,getBaseName(path));} }else{ - var userSelection = ajaxplorer.getUserSelection(); + var userSelection = pydio.getUserSelection(); if(userSelection && userSelection.isUnique() && (userSelection.hasDir() || userSelection.hasMime("AJXP_MIMES_ZIP".split(",")))){ path = userSelection.getUniqueNode(); } } if(path){ - ajaxplorer.updateContextData(path); + pydio.updateContextData(path); } ]]> ]]> ]]> 0){ url = url.substring(0, url.indexOf('?')); } - var repoId = ajaxplorer.repositoryId || (ajaxplorer.user ? ajaxplorer.user.activeRepository : null); - if(ajaxplorer.user){ - var slug = ajaxplorer.user.repositories.get(repoId).getSlug(); + var repoId = pydio.repositoryId || (pydio.user ? pydio.user.activeRepository : null); + if(pydio.user){ + var slug = pydio.user.repositories.get(repoId).getSlug(); if(slug) repoId = slug; } - link = url + '?goto=' + repoId + encodeURIComponent(ajaxplorer.getUserSelection().getUniqueNode().getPath()); + link = url + '?goto=' + repoId + encodeURIComponent(pydio.getUserSelection().getUniqueNode().getPath()); input.value = link; var email = oForm.down('a[id="email"]'); if (email){ @@ -560,7 +560,7 @@ ]]>