summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-26 16:27:56 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-26 16:27:56 +0100
commitcf50e67e1ba741644f7f8a63739ba4705258380a (patch)
tree8b93caf9d6d148228d996b6389e11a9b61825532 /apps
parentd49e8ffb5ed4be03f05b607d9b673e4543b94d21 (diff)
downloadnextcloud-server-cf50e67e1ba741644f7f8a63739ba4705258380a.tar.gz
nextcloud-server-cf50e67e1ba741644f7f8a63739ba4705258380a.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js2
-rw-r--r--apps/files/templates/index.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 82069e3bc57..c306f3ab6ab 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 0d7185bcb78..8ea3a718e85 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -84,13 +84,13 @@
<?php if ($_['permissions'] & OCP\PERMISSION_DELETE): ?>
<!-- NOTE: Temporary fix to allow unsharing of files in root of Shared folder -->
<?php if ($_['dir'] == '/Shared'): ?>
- <span class="selectedActions"><a href="" class="delete">
+ <span class="selectedActions"><a href="" class="delete-selected">
<?php p($l->t('Unshare'))?>
<img class="svg" alt="<?php p($l->t('Unshare'))?>"
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
</a></span>
<?php else: ?>
- <span class="selectedActions"><a href="" class="delete">
+ <span class="selectedActions"><a href="" class="delete-selected">
<?php p($l->t('Delete'))?>
<img class="svg" alt="<?php p($l->t('Delete'))?>"
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />