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

search flyout placeholder

This commit is contained in:
Luke Pulverenti 2013-04-26 16:53:54 -04:00
parent b9cc031d9b
commit ba13b0837d
5 changed files with 183 additions and 87 deletions

View file

@ -696,7 +696,7 @@ var Dashboard = {
if (user && !page.hasClass('wizardPage')) {
headerHtml += Dashboard.getSearchHtml();
headerHtml += Search.getSearchHtml();
headerHtml += '<a class="imageLink btnCurrentUser" href="#" onclick="Dashboard.showUserFlyout();"><span class="currentUsername">' + user.Name + '</span>';
@ -724,7 +724,7 @@ var Dashboard = {
header.append(headerHtml);
$('#searchForm', header).on("submit", Dashboard.onSearchSubmit);
Search.onSearchRendered(header);
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
if (pluginSecurityInfo.IsMBSupporter) {
@ -733,28 +733,6 @@ var Dashboard = {
});
},
onSearchSubmit: function() {
Dashboard.alert('Coming soon.');
return false;
},
getSearchHtml: function() {
var html = '<div class="headerSearch"><form id="searchForm" name="searchForm">';
html += '<input class="txtSearch" type="text" />';
html += '<button class="btnSearch" type="submit">';
html += '<img src="css/images/searchbutton.png" />';
html += '</button>';
html += '</form></div>';
return html;
},
ensureToolsMenu: function (page) {
if (!page.hasClass('type-interior')) {