spogulis no
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
Fix unshare link click element
When clicking on the unshare link (trash icon), the correct link element needs to be used instead of whatever child was clicked. Then, that element might contain a visible loading icon. This fixes the spinner detection and also prevents a full page reload in case the spinner was visible.
Šī revīzija ir iekļauta:
vecāks
e4c5bf790d
revīzija
5567b6cee2
@ -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');
|
||||
|
||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user