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

update dialogs

This commit is contained in:
Luke Pulverenti 2016-10-16 19:52:36 -04:00
parent f8eb80550a
commit 507530feda
9 changed files with 34 additions and 32 deletions

View file

@ -43,7 +43,7 @@
var html = '';
html += '<div class="formDialogHeader">';
html += '<button is="paper-icon-button-light" class="btnCancelSupporterInfo autoSize" tabindex="-1"><i class="md-icon">&#xE5C4;</i></button>';
html += '<h3 class="formDialogHeaderTitle">';
html += '<h3 class="formDialogHeaderTitle">Emby Premiere';
html += '</h3>';
html += '</div>';
@ -74,6 +74,12 @@
dlg.innerHTML = html;
var i, length;
var btnPurchases = dlg.querySelectorAll('.buttonPremiereInfo');
for (i = 0, length = btnPurchases.length; i < length; i++) {
btnPurchases[i].addEventListener('click', showExternalPremiereInfo);
}
if (layoutManager.tv) {
centerFocus(dlg.querySelector('.formDialogContent'), false, true);
}
@ -95,7 +101,6 @@
var onCancelClick = function () {
dialogHelper.close(dlg);
};
var i, length;
var elems = dlg.querySelectorAll('.btnCancelSupporterInfo');
for (i = 0, length = elems.length; i < length; i++) {
elems[i].addEventListener('click', onCancelClick);
@ -111,6 +116,7 @@
}
var settingsKey = 'periodicmessage-' + feature;
var lastMessage = parseInt(appSettings.get(settingsKey) || '0');
if (!lastMessage) {
@ -253,6 +259,7 @@
html += '<div class="formDialogHeader">';
html += '<button is="paper-icon-button-light" class="btnCloseDialog autoSize" tabindex="-1"><i class="md-icon">&#xE5C4;</i></button>';
html += '<h3 class="formDialogHeaderTitle">';
html += dialogOptions.title || '';
html += '</h3>';
html += '</div>';
@ -429,13 +436,13 @@
var cssClass = "listItem";
cssClass += ' listItem-button';
if (layoutManager.tv) {
cssClass += ' listItem-focusscale';
}
if (enableLink) {
cssClass += ' listItem-button';
html += '<button type="button" class="' + cssClass + ' buttonPremiereInfo">';
} else {
html += '<div class="' + cssClass + '">';
@ -453,10 +460,12 @@
html += item.text;
html += '</div>';
html += '</div>';
if (enableLink) {
html += '</div>';
} else {
html += '</button>';
} else {
html += '</div>';
}
return html;