diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 4022662d90..cdaef97777 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -26,6 +26,7 @@ z-index: 1000; top: 0; border-bottom: 1px solid #111; + padding-left: 10px; } .viewMenuLink { @@ -502,6 +503,13 @@ a.itemTag:hover { max-width: 100%; } +@media all and (max-width: 550px) { + + .desktopViewMenuLink { + display: none; + } +} + @media all and (min-width: 600px) { .inlineDetailSection:not(.hide) { display: inline-block; @@ -522,6 +530,10 @@ a.itemTag:hover { @media all and (max-width: 750px) { + .editorMenuLink { + display: none; + } + .itemBackdrop { background-image: none!important; height: auto; diff --git a/dashboard-ui/css/search.css b/dashboard-ui/css/search.css index 1261930613..3dc68e25d2 100644 --- a/dashboard-ui/css/search.css +++ b/dashboard-ui/css/search.css @@ -47,6 +47,7 @@ overflow: hidden; font-size: 12px; color: #fff; + font-weight: normal !important; } .searchHintSecondaryText { diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index c4eb8cacb9..6f2d57e534 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -2382,12 +2382,12 @@ var html = '
'; - html += 'Home'; + html += 'Menu'; - html += 'Remote Control'; + html += ''; if (user.Configuration.IsAdministrator) { - html += ''; + html += 'Metadata Manager'; } html += '
'; @@ -2421,7 +2421,7 @@ $(page).prepend(html); - Search.onSearchRendered($('.viewMenuBar', page).trigger('create')); + $('.viewMenuBar', page).trigger('create'); } function insertViews(page, user, counts, liveTvServices) { @@ -2435,26 +2435,26 @@ if (counts.MovieCount || counts.TrailerCount) { - html += '' + (view == 'movies' ? selectedHtml : '') + 'Movies'; + html += '' + (view == 'movies' ? selectedHtml : '') + 'Movies'; } if (counts.EpisodeCount || counts.SeriesCount) { - html += '' + (view == 'tv' ? selectedHtml : '') + 'TV'; + html += '' + (view == 'tv' ? selectedHtml : '') + 'TV'; } if (liveTvServices.length) { - html += '' + (view == 'livetv' ? selectedHtml : '') + 'Live TV'; + html += '' + (view == 'livetv' ? selectedHtml : '') + 'Live TV'; } if (counts.SongCount || counts.MusicVideoCount) { - html += '' + (view == 'music' ? selectedHtml : '') + 'Music'; + html += '' + (view == 'music' ? selectedHtml : '') + 'Music'; } if (counts.GameCount) { - html += '' + (view == 'games' ? selectedHtml : '') + 'Games'; + html += '' + (view == 'games' ? selectedHtml : '') + 'Games'; } - $('.homeMenuLink', page).after(html); + $('.viewMenuRemoteControlButton', page).before(html); } $(document).on('pagebeforeshow', ".libraryPage", function () { diff --git a/dashboard-ui/scripts/search.js b/dashboard-ui/scripts/search.js index b38417c59d..04094cbe2d 100644 --- a/dashboard-ui/scripts/search.js +++ b/dashboard-ui/scripts/search.js @@ -181,6 +181,10 @@ html += '
' + text + '
'; } + else if (hint.ProductionYear && hint.MediaType != "Audio" && hint.Type != "Episode") { + html += '
' + hint.ProductionYear + '
'; + } + else if (hint.RunTimeTicks) { html += '
' + Dashboard.getDisplayTime(hint.RunTimeTicks) + '
'; } @@ -251,25 +255,8 @@ } }); - } - - return panel; - } - - function search() { - - var self = this; - - self.showSearchPanel = function (page) { - - var panel = getSearchPanel(page); - - $(panel).panel('toggle'); - }; - - self.onSearchRendered = function (parentElem) { - - $('#searchHints', parentElem).on("keydown", '.searchHint', function (e) { + + $('#searchHints', page).on("keydown", '.searchHint', function (e) { // Down if (e.keyCode == 40) { @@ -290,12 +277,25 @@ if (prev) { prev.focus(); } else { - $('#txtSearch', parentElem)[0].focus(); + $('#txtSearch', page)[0].focus(); } return false; } }); + } + return panel; + } + + function search() { + + var self = this; + + self.showSearchPanel = function (page) { + + var panel = getSearchPanel(page); + + $(panel).panel('toggle'); }; } @@ -304,6 +304,7 @@ $(document).on('pagehide', ".libraryPage", function () { $('#txtSearch', this).val(''); + $('#searchHints', this).empty(); });