mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
bug fixes and allow popup with no body
This commit is contained in:
parent
12fce09295
commit
fe16189bad
3 changed files with 12 additions and 7 deletions
|
|
@ -3,14 +3,18 @@
|
|||
<div class="popup-container">
|
||||
<div class="popup">
|
||||
<div class="popup-head">
|
||||
<h3 class="popup-title">{{title}}</h3>
|
||||
{{#if title}}
|
||||
<h3 class="popup-title">{{title}}</h3>
|
||||
{{/if}}
|
||||
{{#if subTitle}}
|
||||
<h5 class="popup-sub-title">{{subTitle}}</h5>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="popup-body">
|
||||
{{{template}}}
|
||||
</div>
|
||||
{{#if template}}
|
||||
<div class="popup-body">
|
||||
{{{template}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if buttons.length}}
|
||||
<div class="popup-buttons">
|
||||
{{#each buttons}}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ IonPopup = {
|
|||
//Figure out if a template or just a html string was passed
|
||||
if (options.templateName) {
|
||||
innerTemplate = Template[options.templateName].renderFunction().value;
|
||||
} else {
|
||||
} else if (options.template) {
|
||||
innerTemplate = '<span>' + options.template + '</span>';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Package.onUse(function(api) {
|
|||
"iron:router@1.0.0",
|
||||
"tracker",
|
||||
"session",
|
||||
"jquery"
|
||||
"jquery",
|
||||
], "client");
|
||||
|
||||
api.addFiles([
|
||||
|
|
@ -117,7 +117,8 @@ Package.onUse(function(api) {
|
|||
"components/ionTab/ionTab.js",
|
||||
|
||||
"components/ionView/ionView.html",
|
||||
"components/ionView/ionView.js"
|
||||
"components/ionView/ionView.js",
|
||||
|
||||
], "client");
|
||||
|
||||
api.export("Platform");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue