mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
completed tuner hosts
This commit is contained in:
parent
0e4e4da6c8
commit
68526e2c1d
13 changed files with 248 additions and 54 deletions
29
dashboard-ui/cordova/actionsheet.js
vendored
29
dashboard-ui/cordova/actionsheet.js
vendored
|
@ -7,6 +7,33 @@
|
|||
// showCancel
|
||||
// title
|
||||
|
||||
// If any items have an icon, give them all an icon just to make sure they're all lined up evenly
|
||||
var renderIcon = options.items.filter(function (o) {
|
||||
return o.ironIcon;
|
||||
}).length;
|
||||
|
||||
if (renderIcon) {
|
||||
|
||||
// iOS supports unicode icons
|
||||
if ($.browser.safari) {
|
||||
|
||||
for (var i = 0, length = options.items.length; i < length; i++) {
|
||||
|
||||
var option = options.items[i];
|
||||
|
||||
switch (option.ironIcon) {
|
||||
|
||||
case 'check':
|
||||
option.name = '\\u2713 ' + option.name;
|
||||
break;
|
||||
default:
|
||||
option.name = '\\u2001 ' + option.name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var innerOptions = {
|
||||
'title': options.title,
|
||||
'buttonLabels': options.items.map(function (i) {
|
||||
|
@ -27,7 +54,7 @@
|
|||
|
||||
// Results are 1-based
|
||||
if (index >= 1 && options.items.length >= index) {
|
||||
|
||||
|
||||
options.callback(options.items[index - 1].id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue