]> source.dussan.org Git - nextcloud-server.git/commitdiff
add event.preventDefault to undelete function
authorGeorg Ehrke <georg@ownCloud.com>
Mon, 27 May 2013 14:37:43 +0000 (16:37 +0200)
committerGeorg Ehrke <georg@ownCloud.com>
Mon, 27 May 2013 14:37:43 +0000 (16:37 +0200)
apps/files_trashbin/js/trash.js

index 63baa83f5279ad7d56c1778d4966be46baa7dd03..691642811b74f35ba46912065e6839e71becc4d0 100644 (file)
@@ -93,6 +93,7 @@ $(document).ready(function() {
                });
 
                $('.undelete').click('click',function(event) {
+                       event.preventDefault();
                        var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
                        var files=getSelectedFiles('file');
                        var fileslist = JSON.stringify(files);