0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
Close modals when clicking off them
This commit is contained in:
Hannah Wolfe 2014-08-08 18:05:13 +01:00
commit 715fa4d08a

View file

@ -1,6 +1,6 @@
<div id="modal-container" {{action bubbles=false preventDefault=false}}>
<article {{bind-attr class="klass :js-modal"}}>
<section class="modal-content">
<div id="modal-container" {{action "closeModal"}}>
<article {{bind-attr class="klass :js-modal"}}>
<section class="modal-content" {{action bubbles=false preventDefault=false}}>
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
{{#if showClose}}<a class="close" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>{{/if}}
<section class="modal-body">
@ -19,4 +19,4 @@
</section>
</article>
</div>
<div class="modal-background fade" {{action "closeModal"}}></div>
<div class="modal-background fade"></div>