mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
music progress and search placeholder
This commit is contained in:
parent
69b9c9c379
commit
6f1e4d2863
9 changed files with 114 additions and 57 deletions
|
@ -695,6 +695,9 @@ var Dashboard = {
|
|||
headerHtml += '<div class="headerButtons">';
|
||||
|
||||
if (user && !page.hasClass('wizardPage')) {
|
||||
|
||||
headerHtml += Dashboard.getSearchHtml();
|
||||
|
||||
headerHtml += '<a class="imageLink btnCurrentUser" href="#" onclick="Dashboard.showUserFlyout();"><span class="currentUsername">' + user.Name + '</span>';
|
||||
|
||||
if (user.PrimaryImageTag) {
|
||||
|
@ -721,12 +724,32 @@ var Dashboard = {
|
|||
|
||||
header.append(headerHtml);
|
||||
|
||||
$('#searchForm', header).on("submit", Dashboard.onSearchSubmit);
|
||||
|
||||
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
|
||||
if (pluginSecurityInfo.IsMBSupporter) {
|
||||
$('<a class="imageLink" href="supporter.html"><img src="css/images/supporter/supporterbadge.png" /></a>').insertBefore('.btnTools', header);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
onSearchSubmit: function() {
|
||||
|
||||
Dashboard.alert('Coming soon.');
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
getSearchHtml: function() {
|
||||
|
||||
var html = '<div class="headerSearch"><form id="searchForm" name="searchForm">';
|
||||
|
||||
html += '<input type="text" />';
|
||||
|
||||
html += '</form></div>';
|
||||
|
||||
return html;
|
||||
},
|
||||
|
||||
ensureToolsMenu: function (page) {
|
||||
|
||||
|
@ -1087,16 +1110,7 @@ $(function () {
|
|||
|
||||
Dashboard.jQueryMobileInit();
|
||||
|
||||
$(document).on('pagebeforeshow', ".page", function () {
|
||||
|
||||
Dashboard.refreshSystemInfoFromServer();
|
||||
|
||||
var page = $(this);
|
||||
|
||||
Dashboard.ensureHeader(page);
|
||||
Dashboard.ensurePageTitle(page);
|
||||
|
||||
}).on('pageinit', ".page", function () {
|
||||
$(document).on('pageinit', ".page", function () {
|
||||
|
||||
var page = $(this);
|
||||
|
||||
|
@ -1120,4 +1134,14 @@ $(document).on('pagebeforeshow', ".page", function () {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}).on('pagebeforeshow', ".page", function () {
|
||||
|
||||
Dashboard.refreshSystemInfoFromServer();
|
||||
|
||||
var page = $(this);
|
||||
|
||||
Dashboard.ensureHeader(page);
|
||||
Dashboard.ensurePageTitle(page);
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue