mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
c1cae072f2
Closes #1990, Ref #3810 - Add `js-` prefix to jQuery calls throughout code and templates - move MarkdownComponent classNames to template - Fix back button on posts content preview - Remove dead code for preview tabbing jQuery
23 lines
1.1 KiB
Handlebars
23 lines
1.1 KiB
Handlebars
<div id="modal-container" class="js-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">
|
|
{{yield}}
|
|
</section>
|
|
{{#if confirm}}
|
|
<footer class="modal-footer">
|
|
<button type="button" {{bind-attr class="acceptButtonClass :js-button-accept"}} {{action "confirm" "accept"}}>
|
|
{{confirm.accept.text}}
|
|
</button>
|
|
<button type="button" {{bind-attr class="rejectButtonClass :js-button-reject"}} {{action "confirm" "reject"}}>
|
|
{{confirm.reject.text}}
|
|
</button>
|
|
</footer>
|
|
{{/if}}
|
|
</section>
|
|
</article>
|
|
</div>
|
|
<div class="modal-background fade js-modal-background"></div>
|