summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/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 16:37:43 +0200
commit841b420bc49d0a50e030279b68c27f6c05446c34 (patch)
tree04de53b1a3c40b70f1f1981158a4c28a000df3fe /apps/files_trashbin/js
parentd408cd7f376c6b6841fd849758c1dbb6d9f12806 (diff)
downloadnextcloud-server-841b420bc49d0a50e030279b68c27f6c05446c34.tar.gz
nextcloud-server-841b420bc49d0a50e030279b68c27f6c05446c34.zip
add event.preventDefault to undelete function
Diffstat (limited to 'apps/files_trashbin/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 63baa83f527..691642811b7 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);