diff options
author | VicDeo <victor.dubiniuk@gmail.com> | 2013-02-18 13:22:43 +0300 |
---|---|---|
committer | VicDeo <victor.dubiniuk@gmail.com> | 2013-02-18 13:22:43 +0300 |
commit | fde0a8b520203aee9800959847ff3bf4ec53250f (patch) | |
tree | 565037f8d67f8871dc31aecf0817252891b03cd2 /apps/files/js | |
parent | 3b9796bfcce38e6e4138ffc68f5a2ff6e34492a0 (diff) | |
download | nextcloud-server-fde0a8b520203aee9800959847ff3bf4ec53250f.tar.gz nextcloud-server-fde0a8b520203aee9800959847ff3bf4ec53250f.zip |
Add Ability to the app to detect more details on the file
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/files.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 918182162d4..8327460cca6 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -162,9 +162,10 @@ $(document).ready(function() { 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 permissions = $(this).parent().parent().data('permissions'); + FileActions.currentFile = $(this).parent(); + var mime=FileActions.getCurrentMimeType(); + var type=FileActions.getCurrentType(); + var permissions = FileActions.getCurrentPermissions(); var action=FileActions.getDefault(mime,type, permissions); if(action){ event.preventDefault(); |