fix search provider

This commit is contained in:
Jonas Heinrich 2018-08-07 16:48:50 +02:00
parent 24c43d96eb
commit d895f70da8
2 changed files with 14 additions and 27 deletions

View File

@ -862,3 +862,7 @@ html.ie8 #controls .button.new {
flex-basis: 100vw; flex-basis: 100vw;
min-height: 100%; min-height: 100%;
} }
.favcolumn {
width: 16px;
}

View File

@ -332,34 +332,16 @@ $(function(){
}, 500); }, 500);
}; };
function mySearch(query){ // Search function
if (query != "") { new OCA.Search(function (query) {
clearTimeout(searchTimeout);
searchTimeout = setTimeout(function(){
$('#app-navigation').find('li').removeClass("active"); $('#app-navigation').find('li').removeClass("active");
$("tbody > tr").remove(); $("tbody > tr").remove();
radio_query(0, query); radio_query(0, query);
}, 500); }, function (arg) {
}; switch_menu(0);
};
/*OC.Plugins.register('OCA.Search.Core', {
attach: function(search) {
search.setFilter('radio', mySearch);
}
});*/
SearchProxy = {
attach: function(search) {
search.setFilter('radio', function(query) {
alert("test");
}); });
}
};
OC.Plugins.register('OCA.Search.Core', SearchProxy);
// Volume slider
$('#volumeslider').slider({ $('#volumeslider').slider({
orientation: "horizontal", orientation: "horizontal",
value: player.volume, value: player.volume,
@ -373,5 +355,6 @@ $(function(){
} }
}); });
// On app start, load top list
switch_menu(0); switch_menu(0);
}); });