fix watchers close problems
parent
bdb4eab44a
commit
3466bf8333
|
@ -75,13 +75,16 @@ class LightboxService extends taiga.Service
|
||||||
docEl = angular.element(document)
|
docEl = angular.element(document)
|
||||||
docEl.off(".lightbox")
|
docEl.off(".lightbox")
|
||||||
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER
|
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER
|
||||||
$el.one "transitionend", =>
|
|
||||||
$el.removeAttr('style')
|
|
||||||
$el.removeClass("open").removeClass('close')
|
|
||||||
|
|
||||||
@animationFrame.add ->
|
@animationFrame.add ->
|
||||||
$el.addClass('close')
|
$el.addClass('close')
|
||||||
|
|
||||||
|
$el.one "transitionend", =>
|
||||||
|
$el.removeAttr('style')
|
||||||
|
$el.removeClass("open").removeClass('close')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if $el.hasClass("remove-on-close")
|
if $el.hasClass("remove-on-close")
|
||||||
scope = $el.data("scope")
|
scope = $el.data("scope")
|
||||||
scope.$destroy() if scope
|
scope.$destroy() if scope
|
||||||
|
@ -658,7 +661,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
|
||||||
render(users)
|
render(users)
|
||||||
$el.find("input").focus()
|
$el.find("input").focus()
|
||||||
|
|
||||||
$el.on "click", ".user-list-single", debounce 2000, (event) ->
|
$el.on "click", ".user-list-single", debounce 200, (event) ->
|
||||||
closeLightbox()
|
closeLightbox()
|
||||||
|
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
Loading…
Reference in New Issue