From 546cfed2cb2fbb1774e1ed82a4bf020a94978e09 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 30 Sep 2016 08:51:13 +0200 Subject: [PATCH] increase tg-loading priority --- app/coffee/modules/common/loading.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/coffee/modules/common/loading.coffee b/app/coffee/modules/common/loading.coffee index aec1069e..5ee375e2 100644 --- a/app/coffee/modules/common/loading.coffee +++ b/app/coffee/modules/common/loading.coffee @@ -59,6 +59,7 @@ TgLoadingService = ($compile) -> start: -> target = service.settings.target + service.settings.classes.map (className) -> target.removeClass(className) if not target.hasClass('loading') && !service.settings.template @@ -109,6 +110,7 @@ LoadingDirective = ($loading) -> template = $el.html() $scope.$watch attr.tgLoading, (showLoading) => + if showLoading currentLoading = $loading() .target($el) @@ -120,6 +122,7 @@ LoadingDirective = ($loading) -> currentLoading.finish() return { + priority: 99999, link:link }