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

update search

This commit is contained in:
Luke Pulverenti 2016-06-27 18:53:42 -04:00
parent 0f0c5850a8
commit 17ada9f98e
4 changed files with 25 additions and 7 deletions

View file

@ -1,4 +1,4 @@
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage noSecondaryNavPage selfBackdropPage" data-contextname="${TitleRemoteControl}" data-theme="b">
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage noSecondaryNavPage selfBackdropPage" data-contextname="${TitleRemoteControl}" data-theme="b" style="padding:0;">
<div class="remoteControlContent">

View file

@ -1,4 +1,4 @@
define(['libraryBrowser', 'focusManager', 'emby-input', 'paper-icon-button-light', 'material-icons'], function (libraryBrowser, focusManager) {
define(['libraryBrowser', 'focusManager', 'embyRouter', 'emby-input', 'paper-icon-button-light', 'material-icons'], function (libraryBrowser, focusManager, embyRouter) {
function loadSuggestions(page) {
@ -180,5 +180,20 @@
onSearchChange(this.value);
});
view.querySelector('.btnBack').addEventListener('click', function () {
embyRouter.back();
});
view.addEventListener('viewbeforeshow', function (e) {
document.body.classList.add('hiddenViewMenuBar');
document.body.classList.add('hiddenNowPlayingBar');
});
view.addEventListener('viewbeforehide', function (e) {
document.body.classList.remove('hiddenViewMenuBar');
document.body.classList.remove('hiddenNowPlayingBar');
});
};
});

View file

@ -2896,8 +2896,7 @@ var AppInfo = {};
defineRoute({
path: '/search.html',
dependencies: [],
controller: 'scripts/searchpage',
transition: 'slidedown'
controller: 'scripts/searchpage'
});
defineRoute({

View file

@ -1,11 +1,15 @@
<div id="searchPage" data-role="page" class="page libraryPage allLibraryPage noSecondaryNavPage" data-title="${ButtonSearch}" data-backbutton="true">
<div id="searchPage" data-role="page" class="page libraryPage allLibraryPage noSecondaryNavPage" data-title="${ButtonSearch}" data-backbutton="true" style="padding-top:40px!important;">
<button is="paper-icon-button-light" style="position: absolute; top: .5em; left: .5em; z-index: 1;" tabindex="-1" class="btnBack autoSize">
<i class="md-icon">arrow_back</i>
</button>
<div data-role="content">
<div class="readOnlyContent" style="text-align: center;margin: 0 auto;">
<div class="inputContainer">
<div class="inputContainer" style="margin-bottom:1em;">
<div style="display: flex; align-items: center;">
<i class="md-icon" style="width:28px;height:28px;font-size:28px;color:#ccc;">search</i>
<i class="md-icon" style="width:28px;height:28px;font-size:28px;color:#aaa;">search</i>
<div style="flex-grow:1;">
<input is="emby-input" class="txtSearch" autocomplete="off" autofocus />
</div>