mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +02:00
Allow several time the same songs in Recently Played (fix #186)
This commit is contained in:
parent
469c8759f2
commit
8ff0728a3d
4 changed files with 18 additions and 14 deletions
|
@ -27,7 +27,7 @@ $(document).ajaxComplete(function () {
|
|||
// Post the contents of a form.
|
||||
function ajaxPost(url, input, source) {
|
||||
if ($(source)) {
|
||||
$(source).off('click', function(){ ajaxPost(url, input, source); });
|
||||
$(source).off('click');
|
||||
}
|
||||
$.ajax(url, { success: processContents, type: 'post', data: $('#'+input).serialize() });
|
||||
} // ajaxPost
|
||||
|
@ -36,7 +36,7 @@ function ajaxPost(url, input, source) {
|
|||
// Get response from the specified URL.
|
||||
function ajaxPut(url, source) {
|
||||
if ($(source)) {
|
||||
$(source).off('click', function(){ ajaxPut(url, source); });
|
||||
$(source).off('click');
|
||||
}
|
||||
$.ajax(url, { success: processContents, type: 'post', dataType: 'xml' });
|
||||
} // ajaxPut
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue