mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
32 lines
582 B
JavaScript
32 lines
582 B
JavaScript
(function () {
|
|
|
|
function searchMenu() {
|
|
|
|
var self = this;
|
|
|
|
self.show = function () {
|
|
|
|
cordova.searchbar.show();
|
|
};
|
|
|
|
self.hide = function () {
|
|
|
|
cordova.searchbar.hide();
|
|
};
|
|
|
|
document.addEventListener('searchEvent', function (data) {
|
|
|
|
Events.trigger(self, 'change', [data.text || '']);
|
|
|
|
}, true);
|
|
|
|
document.addEventListener('searchClosed', function (data) {
|
|
|
|
Events.trigger(self, 'closed');
|
|
|
|
}, true);
|
|
}
|
|
|
|
window.SearchMenu = new searchMenu();
|
|
|
|
})(); |