Fix: Loader not removed from event trigger

This commit is contained in:
buddh4 2020-10-12 16:40:37 +02:00
parent 4793578308
commit e8dd91cf94

View File

@ -719,6 +719,7 @@ humhub.module('action', function(module, require, $) {
var that = this; var that = this;
event.finish = function() { event.finish = function() {
_removeLoaderFromEventTarget(event);
_removeLoaderFromEventTarget(event.originalEvent); _removeLoaderFromEventTarget(event.originalEvent);
that.unblock($trigger); that.unblock($trigger);
}; };
@ -734,6 +735,10 @@ humhub.module('action', function(module, require, $) {
if(evt && evt.target) { if(evt && evt.target) {
loader.reset(evt.target); loader.reset(evt.target);
} }
if(evt && evt.$trigger) {
loader.reset(evt.$trigger);
}
}; };