summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-08 08:39:33 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-08 08:39:33 +0100
commitd6276faff6fafe88f59953cb61f9411038be23e9 (patch)
treea8e61367a97dd4cc362f2bacbec8f8433e937628
parent736e133c047a22b587294a1231b61ac2575f3f83 (diff)
parent5567b6cee229c0380d243d1697f926d02db1a3e8 (diff)
downloadnextcloud-server-d6276faff6fafe88f59953cb61f9411038be23e9.tar.gz
nextcloud-server-d6276faff6fafe88f59953cb61f9411038be23e9.zip
Merge pull request #21014 from owncloud/share-unsharelinkpapercut
Fix unshare link click element
-rw-r--r--core/js/sharedialogshareelistview.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index dfe5789e774..daed8a439bb 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -245,12 +245,14 @@
onUnshare: function(event) {
var $element = $(event.target);
- console.log($element);
+ if (!$element.is('a')) {
+ $element = $element.closest('a');
+ }
- var $loading = $element.siblings('.icon-loading-small').eq(0);
+ var $loading = $element.find('.icon-loading-small').eq(0);
if(!$loading.hasClass('hidden')) {
// in process
- return;
+ return false;
}
$loading.removeClass('hidden');