aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js/trash.js
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-05-27 16:37:43 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-05-27 17:07:39 +0200
commit0cf6e5693a07d2688cd4a09097ed33efd5130caf (patch)
tree0dd6663d94c1cb7e24ffa32b6ad2ad79376462fe /apps/files_trashbin/js/trash.js
parent55e4e054d6ff62e6e1232f66184dd534dce1af00 (diff)
downloadnextcloud-server-0cf6e5693a07d2688cd4a09097ed33efd5130caf.tar.gz
nextcloud-server-0cf6e5693a07d2688cd4a09097ed33efd5130caf.zip
add event.preventDefault to undelete function
Diffstat (limited to 'apps/files_trashbin/js/trash.js')
-rw-r--r--apps/files_trashbin/js/trash.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 39e76e10c9c..668313c358f 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -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);