]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow default click behaviour
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 9 Jan 2013 14:21:55 +0000 (15:21 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 9 Jan 2013 14:21:55 +0000 (15:21 +0100)
apps/files/js/files.js

index bb298431e84afe1ea6d1c965574baea96451942c..a4260c43285b742504bb757bae9a19b597dfbb94 100644 (file)
@@ -87,8 +87,8 @@ $(document).ready(function() {
 
        // Sets the file link behaviour :
        $('td.filename a').live('click',function(event) {
-               event.preventDefault();
                if (event.ctrlKey || event.shiftKey) {
+                       event.preventDefault();
                        if (event.shiftKey) {
                                var last = $(lastChecked).parent().parent().prevAll().length;
                                var first = $(this).parent().parent().prevAll().length;
@@ -130,6 +130,7 @@ $(document).ready(function() {
                                var permissions = $(this).parent().parent().data('permissions');
                                var action=FileActions.getDefault(mime,type, permissions);
                                if(action){
+                                       event.preventDefault();
                                        action(filename);
                                }
                        }