1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

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

@ -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);