mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Merge pull request #4720 from jaswilli/modal-error
Use an explicit action name in action helper
This commit is contained in:
commit
e9f2b2a44a
@ -29,7 +29,8 @@ var ModalDialog = Ember.Component.extend({
|
||||
confirm: function (type) {
|
||||
this.sendAction('confirm' + type);
|
||||
this.close();
|
||||
}
|
||||
},
|
||||
noBubble: Ember.K
|
||||
},
|
||||
|
||||
klass: Ember.computed('type', 'style', function () {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="modal-container js-modal-container" {{action "closeModal"}}>
|
||||
<article {{bind-attr class="klass :js-modal"}}>
|
||||
<section class="modal-content" {{action bubbles=false preventDefault=false}}>
|
||||
<section class="modal-content" {{action "noBubble" 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">
|
||||
|
Loading…
Reference in New Issue
Block a user