mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-13 00:02:21 +01:00
Merge artist and title searchbar into a single textbox.
This commit is contained in:
@ -41,7 +41,7 @@ $(function () {
|
||||
console.log('Page: ' + $(this).val());
|
||||
});
|
||||
|
||||
$('#search-all, #search-artist, #search-title, #search-uploader, .pagenum').change(function(){
|
||||
$('#search-all, #search-uploader, .pagenum').change(function(){
|
||||
getSongs();
|
||||
});
|
||||
|
||||
@ -180,12 +180,10 @@ function refreshQueue()
|
||||
function getSongs()
|
||||
{
|
||||
var all = $('#search-all').val();
|
||||
var artist = $('#search-artist').val();
|
||||
var title = $('#search-title').val();
|
||||
var uploader = $('#search-uploader').val();
|
||||
var page = $('.pagenum').val();
|
||||
var pagesize = $('.pagesize').val();
|
||||
$.post('/api/songs', {all: all, artist: artist, title: title, uploader: uploader, 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) {
|
||||
|
||||
Reference in New Issue
Block a user