mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update search
This commit is contained in:
parent
8dd2c5d717
commit
cc428aac1d
34 changed files with 814 additions and 549 deletions
31
dashboard-ui/cordova/ios/tabbar.js
vendored
31
dashboard-ui/cordova/ios/tabbar.js
vendored
|
@ -18,7 +18,7 @@
|
|||
Dashboard.navigate('index.html');
|
||||
break;
|
||||
case 'Search':
|
||||
Dashboard.navigate('index.html');
|
||||
Dashboard.navigate('search.html');
|
||||
break;
|
||||
case 'NowPlaying':
|
||||
Dashboard.navigate('nowplaying.html');
|
||||
|
@ -69,19 +69,16 @@
|
|||
|
||||
var items = [
|
||||
{ name: 'Featured', label: Globalize.translate('ButtonForYou'), image: 'tabButton:Featured', options: {} },
|
||||
{ name: 'Library', label: Globalize.translate('ButtonLibrary'), image: 'tabButton:History', options: {} },
|
||||
{ name: 'Library', label: Globalize.translate('ButtonLibrary'), image: 'tabbar/tab-library.png', options: {} },
|
||||
{ name: 'Search', label: Globalize.translate('ButtonSearch'), image: 'tabButton:Search', options: {} },
|
||||
{ name: 'NowPlaying', label: Globalize.translate('ButtonNowPlaying'), image: 'tabButton:MostViewed', options: {} },
|
||||
{ name: 'Sync', label: Globalize.translate('ButtonSync'), image: 'tabButton:Downloads', options: {} },
|
||||
{ name: 'Settings', label: Globalize.translate('ButtonSettings'), image: 'tabButton:More', options: {} }
|
||||
{ name: 'NowPlaying', label: Globalize.translate('ButtonNowPlaying'), image: 'tabbar/tab-nowplaying.png', options: {} },
|
||||
{ name: 'Sync', label: Globalize.translate('ButtonSync'), image: 'tabbar/tab-sync.png', options: {} },
|
||||
{ name: 'Settings', label: Globalize.translate('ButtonSettings'), image: 'tabbar/tab-settings.png', options: {} }
|
||||
];
|
||||
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
var item = items[i];
|
||||
var options = item.options;
|
||||
// set the function to invoke when the item is selected
|
||||
options.onSelect = onTabSelected;
|
||||
TabBar.createItem(item.name, item.label, item.image, item.options);
|
||||
TabBar.createItem(item.name, item.label, item.image, onTabSelected, item.options);
|
||||
};
|
||||
|
||||
TabBar.showItems();
|
||||
|
@ -116,6 +113,8 @@
|
|||
|
||||
Events.on(ConnectionManager, 'localusersignedin', showTabs);
|
||||
Events.on(ConnectionManager, 'localusersignedout', hideTabs);
|
||||
Events.on(ConnectionManager, 'playbackstart', onPlaybackStop);
|
||||
Events.on(ConnectionManager, 'playbackstop', onPlaybackStart);
|
||||
});
|
||||
|
||||
pageClassOn('pageshowready', "page", function () {
|
||||
|
@ -130,4 +129,18 @@
|
|||
}
|
||||
});
|
||||
|
||||
function onPlaybackStart(e, state, player) {
|
||||
|
||||
if (state.NowPlayingItem && state.NowPlayingItem.MediaType == 'Video' && player.isLocalPlayer) {
|
||||
hideTabs();
|
||||
}
|
||||
}
|
||||
|
||||
function onPlaybackStop(e, state, player) {
|
||||
|
||||
if (state.NowPlayingItem && state.NowPlayingItem.MediaType == 'Video' && player.isLocalPlayer) {
|
||||
showTabs();
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue