Merge both search-fields into one

This commit is contained in:
Olaf Slomp
2019-10-31 10:32:07 +01:00
committed by Daan Sprenkels
parent 581e14f7ef
commit 4c9a431f8a
3 changed files with 4 additions and 7 deletions

View File

@ -310,10 +310,9 @@ function refreshSeconds(playNextAt, now) {
function getSongs() {
var all = $('#search-all').val();
var uploader = $('#search-uploader').val();
var page = $('.pagenum').val();
var pagesize = $('.pagesize').val();
$.post('/api/songs', {all: all, uploader: uploader, page: page, pagesize: pagesize, csrfmiddlewaretoken: csrf_token}, function (result) {
$.post('/api/songs', {all: all, page: page, pagesize: pagesize, csrfmiddlewaretoken: csrf_token}, function (result) {
$('#request-table tbody').empty();
songs = result.data;
$.each(songs, function (id, song) {
@ -413,4 +412,4 @@ function createAlert(type, message) {
message +
'</div>';
$('body > div.container > div.alert-location').prepend(alertText);
}
}