aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/fileactions.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-29 02:26:20 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-29 02:26:32 +0200
commita7748c14c61fbcf412eb96203f2f70e9ef77a9b9 (patch)
tree1f47c9d033d0ec47e4e414f36abea8afab895b29 /files/js/fileactions.js
parent224dbed79c83930b16f2c080a75a0f8cc05bdc61 (diff)
downloadnextcloud-server-a7748c14c61fbcf412eb96203f2f70e9ef77a9b9.tar.gz
nextcloud-server-a7748c14c61fbcf412eb96203f2f70e9ef77a9b9.zip
dont need the ok button for renaming
Diffstat (limited to 'files/js/fileactions.js')
-rw-r--r--files/js/fileactions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js
index 4de7fa5542b..359e54dda3c 100644
--- a/files/js/fileactions.js
+++ b/files/js/fileactions.js
@@ -54,6 +54,10 @@ FileActions={
display:function(parent){
FileActions.currentFile=parent;
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
+ var file=FileActions.getCurrentFile();
+ if($('tr[data-file="'+file+'"]').data('renaming')){
+ return;
+ }
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
for(name in actions){
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){