Commit d895f70d authored by onny's avatar onny

fix search provider

parent 24c43d96
......@@ -862,3 +862,7 @@ html.ie8 #controls .button.new {
flex-basis: 100vw;
min-height: 100%;
}
.favcolumn {
width: 16px;
}
......@@ -332,34 +332,16 @@ $(function(){
}, 500);
};
function mySearch(query){
if (query != "") {
clearTimeout(searchTimeout);
searchTimeout = setTimeout(function(){
$('#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");
});
}
};
OC.Plugins.register('OCA.Search.Core', SearchProxy);
// Search function
new OCA.Search(function (query) {
$('#app-navigation').find('li').removeClass("active");
$("tbody > tr").remove();
radio_query(0, query);
}, function (arg) {
switch_menu(0);
});
// Volume slider
$('#volumeslider').slider({
orientation: "horizontal",
value: player.volume,
......@@ -373,5 +355,6 @@ $(function(){
}
});
// On app start, load top list
switch_menu(0);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment