mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update icons
This commit is contained in:
parent
902dc76b59
commit
155f14246b
29 changed files with 301 additions and 170 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['datetime', 'jQuery'], function (datetime, $) {
|
||||
define(['datetime', 'jQuery', 'material-icons'], function (datetime, $) {
|
||||
|
||||
function getNode(item, folderState, selected) {
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
var htmlName = "<div class='" + cssClass + "'>";
|
||||
|
||||
if (item.LockData) {
|
||||
htmlName += '<iron-icon icon="lock" style="height:18px"></iron-icon>';
|
||||
htmlName += '<i class="md-icon">lock</i>';
|
||||
}
|
||||
|
||||
htmlName += name;
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
html += '</paper-item-body>';
|
||||
|
||||
html += '<button type="button" is="paper-icon-button-light" data-seriestimerid="' + timer.Id + '" title="' + Globalize.translate('ButtonCancelSeries') + '" class="btnCancelSeries"><iron-icon icon="cancel"></iron-icon></button>';
|
||||
html += '<button type="button" is="paper-icon-button-light" data-seriestimerid="' + timer.Id + '" title="' + Globalize.translate('ButtonCancelSeries') + '" class="btnCancelSeries autoSize"><i class="md-icon">cancel</i></button>';
|
||||
|
||||
html += '</paper-icon-item>';
|
||||
}
|
||||
|
|
|
@ -93,7 +93,8 @@
|
|||
require(['dialogHelper', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'emby-button'], function (dialogHelper) {
|
||||
|
||||
var dlg = dialogHelper.createDialog({
|
||||
size: 'fullscreen-border'
|
||||
size: 'fullscreen-border',
|
||||
removeOnClose: true
|
||||
});
|
||||
|
||||
dlg.classList.add('ui-body-b');
|
||||
|
@ -122,8 +123,8 @@
|
|||
|
||||
html += '<br/>';
|
||||
|
||||
html += '<a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised submit block" autoFocus><iron-icon icon="check"></iron-icon><span>' + Globalize.translate('ButtonBecomeSupporter') + '</span></button></a>';
|
||||
html += '<button is="emby-button" type="button" class="raised subdued block btnCancelSupporterInfo" style="background:#444;"><iron-icon icon="close"></iron-icon><span>' + Globalize.translate('ButtonClosePlayVideo') + '</span></button>';
|
||||
html += '<a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised submit block" autoFocus><i class="md-icon">check</i><span>' + Globalize.translate('ButtonBecomeSupporter') + '</span></button></a>';
|
||||
html += '<button is="emby-button" type="button" class="raised subdued block btnCancelSupporterInfo" style="background:#444;"><i class="md-icon">close</i><span>' + Globalize.translate('ButtonClosePlayVideo') + '</span></button>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
|
@ -133,15 +134,19 @@
|
|||
// Has to be assigned a z-index after the call to .open()
|
||||
dlg.addEventListener('close', function (e) {
|
||||
appStorage.setItem(supporterPlaybackKey, new Date().getTime());
|
||||
dlg.parentNode.removeChild(dlg);
|
||||
resolve();
|
||||
});
|
||||
|
||||
dialogHelper.open(dlg);
|
||||
|
||||
$('.btnCancelSupporterInfo').on('click', function () {
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue