mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-06-30 06:12:08 -06:00
fix bug when calling ionModal before ionBody rendered
This commit is contained in:
parent
68e64b5393
commit
d8a1f0c2f8
1 changed files with 1 additions and 2 deletions
|
|
@ -11,8 +11,7 @@ IonModal = {
|
|||
open: function (templateName, data) {
|
||||
this.template = Template[templateName];
|
||||
|
||||
if ($('.ionic-body').length == 0) return console.log('Can\'t open ionModal yet, please wait for ionBody to render.');
|
||||
var view = Blaze.renderWithData(this.template, data, $('.ionic-body').get(0));
|
||||
var view = Blaze.renderWithData(this.template, data, $('body').get(0));
|
||||
|
||||
if (!this.view[templateName]) {
|
||||
this.view[templateName] = [view];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue