remove another jqm panel

This commit is contained in:
Luke Pulverenti 2016-02-15 09:41:07 -05:00
parent 914a579a66
commit 8a8ca495fd
10 changed files with 56 additions and 55 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.77",
"_release": "1.0.77",
"version": "1.0.79",
"_release": "1.0.79",
"_resolution": {
"type": "version",
"tag": "1.0.77",
"commit": "68a71ffeed9dad3e3d06d163b51ae4c555f3c1f9"
"tag": "1.0.79",
"commit": "f00dd984581d53272229de71458c8a8f6b5878fc"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.0.0",

View file

@ -32,8 +32,20 @@ define(['paperdialoghelper', 'layoutManager', 'globalize', 'dialogText', 'html!.
html += '<paper-icon-button tabindex="-1" icon="dialog:arrow-back" class="btnPromptExit"></paper-icon-button>';
}
if (options.title) {
html += '<h2>';
html += options.title;
html += '</h2>';
}
html += '<paper-input autoFocus class="txtPromptValue"></paper-input>';
if (options.description) {
html += '<div class="fieldDescription">';
html += options.description;
html += '</div>';
}
// TODO: An actual form element should probably be added
html += '<br/>';
if (raisedButtons) {
@ -53,8 +65,8 @@ define(['paperdialoghelper', 'layoutManager', 'globalize', 'dialogText', 'html!.
dlg.querySelector('.txtPromptValue').value = options.text;
}
if (options.title) {
dlg.querySelector('.txtPromptValue').label = options.title;
if (options.label) {
dlg.querySelector('.txtPromptValue').label = options.label;
}
document.body.appendChild(dlg);