Temporary fix to prevent rename action in root of Shared directory
This commit is contained in:
parent
7168fa4b05
commit
0c4575db7a
|
@ -77,6 +77,10 @@ FileActions={
|
||||||
parent.children('a.name').append('<span class="fileactions" />');
|
parent.children('a.name').append('<span class="fileactions" />');
|
||||||
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions());
|
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions());
|
||||||
for(name in actions){
|
for(name in actions){
|
||||||
|
// NOTE: Temporary fix to prevent rename action in root of Shared directory
|
||||||
|
if (name == 'Rename' && $('#dir').val() == '/Shared') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
|
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
|
||||||
var img=FileActions.icons[name];
|
var img=FileActions.icons[name];
|
||||||
if(img.call){
|
if(img.call){
|
||||||
|
|
Loading…
Reference in New Issue