mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Fixed a bug where opening a modal by data attributes would sometimes open it multiple times.
This commit is contained in:
parent
8859405e18
commit
8a2b762446
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ class CocoView extends Backbone.View
|
|||
# Modals
|
||||
|
||||
toggleModal: (e) ->
|
||||
return if visibleModal
|
||||
if $(e.currentTarget).prop('target') is '_blank'
|
||||
return true
|
||||
# special handler for opening modals that are dynamically loaded, rather than static in the page. It works (or should work) like Bootstrap's modals, except use coco-modal for the data-toggle value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue