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;
min-height: 100%;
}
.favcolumn {
width: 16px;
}

View File

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