diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-08 00:11:54 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-08 00:11:54 +0100 |
commit | f93f9dd50cce6b6e2ed4eeca2d34b2bac82e0350 (patch) | |
tree | c76b2eabb63ed308eb882468cb2a74042e6f9d53 /apps/files/js/files.js | |
parent | 697536cf6ad1c9a862c32605b807172dfa680d22 (diff) | |
parent | 3bd33b69a1c37cee5c3d180ec8952a611aabb4d1 (diff) | |
download | nextcloud-server-f93f9dd50cce6b6e2ed4eeca2d34b2bac82e0350.tar.gz nextcloud-server-f93f9dd50cce6b6e2ed4eeca2d34b2bac82e0350.zip |
merge master into trash_fileactions
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3d09d6aa2b6..7c377afc620 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -110,7 +110,7 @@ $(document).ready(function() { } // Triggers invisible file input - $('#upload a').live('click', function() { + $('#upload a').on('click', function() { $(this).parent().children('#file_upload_start').trigger('click'); return false; }); @@ -123,7 +123,7 @@ $(document).ready(function() { var lastChecked; // Sets the file link behaviour : - $('td.filename a').live('click',function(event) { + $('#fileList').on('click','td.filename a',function(event) { if (event.ctrlKey || event.shiftKey) { event.preventDefault(); if (event.shiftKey) { @@ -189,7 +189,7 @@ $(document).ready(function() { procesSelection(); }); - $('td.filename input:checkbox').live('change',function(event) { + $('#fileList').on('change', 'td.filename input:checkbox',function(event) { if (event.shiftKey) { var last = $(lastChecked).parent().parent().prevAll().length; var first = $(this).parent().parent().prevAll().length; @@ -776,6 +776,10 @@ $(document).ready(function() { }); function scanFiles(force, dir){ + if (!OC.currentUser) { + return; + } + if(!dir){ dir = ''; } |