diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-12-05 23:51:44 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-12-05 23:52:14 +0100 |
commit | a0548a416a56f6e0fd3269279777d57156c47d15 (patch) | |
tree | 162b2a18f93dfdb140536364d4387d9d65740e3c /files/js/files.js | |
parent | 31846141b0269bb24b9925a1bbbbc5d815719bec (diff) | |
download | nextcloud-server-a0548a416a56f6e0fd3269279777d57156c47d15.tar.gz nextcloud-server-a0548a416a56f6e0fd3269279777d57156c47d15.zip |
Don't trigger file action when renaming, stupid fix for stupid firefox behaviour
Diffstat (limited to 'files/js/files.js')
-rw-r--r-- | files/js/files.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/files/js/files.js b/files/js/files.js index 53437453ff9..5a528f5122c 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -70,7 +70,9 @@ $(document).ready(function() { procesSelection(); } else { var filename=$(this).parent().parent().attr('data-file'); - if(!FileList.isLoading(filename)){ + var tr=$('tr').filterAttr('data-file',filename); + var renaming=tr.data('renaming') + if(!renaming && !FileList.isLoading(filename)){ var mime=$(this).parent().parent().data('mime'); var type=$(this).parent().parent().data('type'); var action=FileActions.getDefault(mime,type); |