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

change header icons to jqm buttons

This commit is contained in:
Luke Pulverenti 2013-12-27 12:12:23 -05:00
parent 68ab3acc3e
commit 946f2ff98e
4 changed files with 44 additions and 30 deletions

View file

@ -181,6 +181,10 @@
html += '<div class="searchHintSecondaryText">' + text + '</div>';
}
else if (hint.ProductionYear && hint.MediaType != "Audio" && hint.Type != "Episode") {
html += '<div class="searchHintSecondaryText">' + hint.ProductionYear + '</div>';
}
else if (hint.RunTimeTicks) {
html += '<div class="searchHintSecondaryText">' + Dashboard.getDisplayTime(hint.RunTimeTicks) + '</div>';
}
@ -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();
});