mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 14:22:19 -06:00
misc
This commit is contained in:
parent
aff9268cc7
commit
b2501acdb5
1 changed files with 6 additions and 4 deletions
|
|
@ -13,8 +13,8 @@ IonPopup = {
|
|||
});
|
||||
}
|
||||
|
||||
//Figure out if a template or just a html string was passed
|
||||
var innerTemplate;
|
||||
// Figure out if a template or just a html string was passed
|
||||
var innerTemplate = '';
|
||||
if (options.templateName) {
|
||||
innerTemplate = Template[options.templateName].renderFunction().value;
|
||||
} else if (options.template) {
|
||||
|
|
@ -85,13 +85,15 @@ IonPopup = {
|
|||
|
||||
prompt: function (options) {
|
||||
|
||||
var template;
|
||||
var template = '';
|
||||
if (options.templateName) {
|
||||
template = Template[options.templateName].renderFunction().value;
|
||||
} else if (options.template) {
|
||||
template = '<span>' + options.template + '</span>';
|
||||
template = '<span class="popup-prompt-text">' + options.template + '</span>';
|
||||
}
|
||||
|
||||
options.inputType = options.inputType || 'text';
|
||||
options.inputPlaceholder = options.inputPlaceholder || '';
|
||||
template += '<input type="' + options.inputType + '" placeholder="' +
|
||||
options.inputPlaceholder + '" name="prompt" >';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue