From 841b420bc49d0a50e030279b68c27f6c05446c34 Mon Sep 17 00:00:00 2001
From: Georg Ehrke <georg@ownCloud.com>
Date: Mon, 27 May 2013 16:37:43 +0200
Subject: [PATCH] add event.preventDefault to undelete function

---
 apps/files_trashbin/js/trash.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 63baa83f52..691642811b 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);
-- 
GitLab