1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

fix ajax post logic to include form elements

This commit is contained in:
John Moore 2013-07-27 17:52:37 -05:00
parent 6b40e833ea
commit a03b53485d
2 changed files with 2 additions and 6 deletions

View file

@ -26,7 +26,8 @@ $(document).ajaxComplete(function () {
// ajaxPost
// Post the contents of a form.
function ajaxPost(url, input, source) {
$.ajax(url, { success: processContents, type: 'post', data: input });
//$('#' + input)
$.ajax(url, { success: processContents, type: 'post', data: $('#'+input).serialize() });
} // ajaxPost
// ajaxPut