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