Fix .notify
parent
c554d26d22
commit
a6d44b91ba
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
taiga = @.taiga
|
taiga = @.taiga
|
||||||
timeout = @.taiga.timeout
|
timeout = @.taiga.timeout
|
||||||
|
cancelTimeout = @.taiga.cancelTimeout
|
||||||
|
|
||||||
|
|
||||||
class ConfirmService extends taiga.Service
|
class ConfirmService extends taiga.Service
|
||||||
|
@ -79,7 +80,6 @@ class ConfirmService extends taiga.Service
|
||||||
# custom messages.
|
# custom messages.
|
||||||
#
|
#
|
||||||
# Types: error, success
|
# Types: error, success
|
||||||
|
|
||||||
selector = ".notification-message-#{type}"
|
selector = ".notification-message-#{type}"
|
||||||
@.el = angular.element(selector)
|
@.el = angular.element(selector)
|
||||||
|
|
||||||
|
@ -98,5 +98,6 @@ class ConfirmService extends taiga.Service
|
||||||
body.find(selector).addClass("hidden")
|
body.find(selector).addClass("hidden")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module = angular.module("taigaBase")
|
module = angular.module("taigaBase")
|
||||||
module.service("$tgConfirm", ["$q", ConfirmService])
|
module.service("$tgConfirm", ["$q", ConfirmService])
|
||||||
|
|
|
@ -64,6 +64,10 @@ timeout = (wait, continuation) ->
|
||||||
return window.setTimeout(continuation, wait)
|
return window.setTimeout(continuation, wait)
|
||||||
|
|
||||||
|
|
||||||
|
cancelTimeout = (timeoutVar) ->
|
||||||
|
window.clearTimeout(timeoutVar)
|
||||||
|
|
||||||
|
|
||||||
scopeDefer = (scope, func) ->
|
scopeDefer = (scope, func) ->
|
||||||
_.defer =>
|
_.defer =>
|
||||||
scope.$apply(func)
|
scope.$apply(func)
|
||||||
|
@ -96,6 +100,7 @@ taiga.trim = trim
|
||||||
taiga.toggleText = toggleText
|
taiga.toggleText = toggleText
|
||||||
taiga.groupBy = groupBy
|
taiga.groupBy = groupBy
|
||||||
taiga.timeout = timeout
|
taiga.timeout = timeout
|
||||||
|
taiga.cancelTimeout = cancelTimeout
|
||||||
taiga.scopeDefer = scopeDefer
|
taiga.scopeDefer = scopeDefer
|
||||||
taiga.toString = toString
|
taiga.toString = toString
|
||||||
taiga.joinStr = joinStr
|
taiga.joinStr = joinStr
|
||||||
|
|
Loading…
Reference in New Issue