fix searchprovider
This commit is contained in:
parent
be3953d06f
commit
838dab9b59
14
js/main.js
14
js/main.js
@ -1,4 +1,4 @@
|
||||
$(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">
|
||||
|
Loading…
Reference in New Issue
Block a user