fix searchprovider

This commit is contained in:
Jonas Heinrich 2017-01-09 15:43:56 +01:00
parent be3953d06f
commit 838dab9b59
2 changed files with 5 additions and 12 deletions

View File

@ -1,4 +1,4 @@
$(window).on('load', function(){ $(function(){
$('body').on('click', 'tr', function() { $('body').on('click', 'tr', function() {
var stationid = $(this).attr('data-id'); var stationid = $(this).attr('data-id');
@ -73,7 +73,8 @@ $(window).on('load', function(){
method: "POST", method: "POST",
url: url, url: url,
data: { data: {
name: query name: query,
limit: 20
}, },
dataType: 'json', dataType: 'json',
success: render_result 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() { $('a.nav-icon-files').click(function() {
switch_menu(0); switch_menu(0);
}); });
@ -119,7 +114,8 @@ $(window).on('load', function(){
}); });
function mySearch(query){ function mySearch(query){
alert('test'); $("tbody > tr").remove();
radio_query(0, query);
}; };
OC.Plugins.register('OCA.Search', { OC.Plugins.register('OCA.Search', {

View File

@ -25,9 +25,6 @@
</ul> </ul>
<div id="app-settings"> <div id="app-settings">
<audio id="player" src="" controls></audio> <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> </div>
<div id="app-content"> <div id="app-content">