From cf50e67e1ba741644f7f8a63739ba4705258380a Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 26 Mar 2013 16:27:56 +0100 Subject: [PATCH] prevent to fire delete ajax a second time. Before the click on a single file delete icon fired two different handlers - one of them is for multiple deletion only --- apps/files/js/files.js | 2 +- apps/files/templates/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 82069e3bc5..c306f3ab6a 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -233,7 +233,7 @@ $(document).ready(function() { return false; }); - $('.delete').click(function(event) { + $('.delete-selected').click(function(event) { var files=getSelectedFiles('name'); event.preventDefault(); FileList.do_delete(files); diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 0d7185bcb7..8ea3a718e8 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -84,13 +84,13 @@ - + t('Unshare'))?> <?php p($l->t('Unshare'))?>" /> - + t('Delete'))?> <?php p($l->t('Delete'))?>" />