Fixed bug #722: Now is easier to close the lightbox
parent
a5747af1a8
commit
6e04267b63
|
@ -31,6 +31,11 @@ class LightboxService extends taiga.Service
|
|||
lightbox.addClass('open')
|
||||
), 70
|
||||
|
||||
lightbox.on 'click', (e) =>
|
||||
target = angular.element(e.target)
|
||||
if target[0] == lightbox[0]
|
||||
@close(lightbox)
|
||||
|
||||
$(document)
|
||||
.on 'keydown.lightbox', (e) =>
|
||||
code = if e.keyCode then e.keyCode else e.which
|
||||
|
|
Loading…
Reference in New Issue