fix task lightbox
parent
c24cbeb7dc
commit
959b49cefe
|
@ -37,10 +37,10 @@ class LightboxService extends taiga.Service
|
||||||
|
|
||||||
if code == 27
|
if code == 27
|
||||||
@close(lightbox)
|
@close(lightbox)
|
||||||
$(document).off('lightbox')
|
|
||||||
|
|
||||||
|
|
||||||
close: (lightbox) ->
|
close: (lightbox) ->
|
||||||
|
$(document).off('.lightbox')
|
||||||
lightbox
|
lightbox
|
||||||
.one "transitionend", () ->
|
.one "transitionend", () ->
|
||||||
lightbox.css('display', 'none')
|
lightbox.css('display', 'none')
|
||||||
|
|
|
@ -104,10 +104,6 @@ CreateBulkTasksDirective = ($repo, $rs, $rootscope, lightboxService) ->
|
||||||
lightboxService.open($el)
|
lightboxService.open($el)
|
||||||
$scope.form = {data: "", sprintId: sprintId, usId: usId}
|
$scope.form = {data: "", sprintId: sprintId, usId: usId}
|
||||||
|
|
||||||
$el.on "click", ".close", (event) ->
|
|
||||||
event.preventDefault()
|
|
||||||
lightboxService.close($el)
|
|
||||||
|
|
||||||
$el.on "click", ".button-green", (event) ->
|
$el.on "click", ".button-green", (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue