Revert "Merge branch 'oslomp/search_field' into 'marietje-zuid'"

This reverts merge request !42
This commit is contained in:
Daan Sprenkels
2019-11-01 17:31:44 +01:00
parent 7af7127612
commit a3f501273f
3 changed files with 7 additions and 4 deletions

View File

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