mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
6f21a963ea
commit
823f69bb92
68 changed files with 303 additions and 388 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['layoutManager', 'globalize'], function (layoutManager, globalize) {
|
||||
define(['layoutManager', 'globalize', 'css!./dialog'], function (layoutManager, globalize) {
|
||||
|
||||
function showTvDialog(options) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
@ -48,14 +48,14 @@ define(['layoutManager', 'globalize'], function (layoutManager, globalize) {
|
|||
html += '<div style="margin:1em 0;">' + text + '</div>';
|
||||
}
|
||||
|
||||
html += '<div class="buttons">';
|
||||
html += '<div class="dialogButtons">';
|
||||
|
||||
var i, length;
|
||||
for (i = 0, length = options.buttons.length; i < length; i++) {
|
||||
|
||||
var item = options.buttons[i];
|
||||
var autoFocus = i == 0 ? ' autofocus' : '';
|
||||
html += '<button is="emby-button" type="button" class="btnOption" data-id="' + item.id + '"' + autoFocus + '>' + item.name + '</button>';
|
||||
html += '<button is="emby-button" type="button" class="btnOption dialogButton" data-id="' + item.id + '"' + autoFocus + '>' + item.name + '</button>';
|
||||
}
|
||||
|
||||
html += '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue