Commit 838dab9b authored by onny's avatar onny

fix searchprovider

parent be3953d0
$(window).on('load', function(){
$(function(){
$('body').on('click', 'tr', function() {
var stationid = $(this).attr('data-id');
......@@ -73,7 +73,8 @@ $(window).on('load', function(){
method: "POST",
url: url,
data: {
name: query
name: query,
limit: 20
},
dataType: 'json',
success: render_result
......@@ -100,12 +101,6 @@ $(window).on('load', function(){
}
}
$('#radiosearch').submit(function() {
$("tbody > tr").remove();
var query = $('#radioquery').val();
radio_query(0, query);
});
$('a.nav-icon-files').click(function() {
switch_menu(0);
});
......@@ -119,7 +114,8 @@ $(window).on('load', function(){
});
function mySearch(query){
alert('test');
$("tbody > tr").remove();
radio_query(0, query);
};
OC.Plugins.register('OCA.Search', {
......
......@@ -25,9 +25,6 @@
</ul>
<div id="app-settings">
<audio id="player" src="" controls></audio>
<form id="radiosearch" action="javascript:void(0);">
<input id="radioquery" placeholder="Search for name" autofocus required></input>
</form>
</div>
</div>
<div id="app-content">
......
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