1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00

Can now re-order playlist and album songs #53 (new grab icon displayed on sortable list)

Updating only the modified item (not refreshing page anymore) #43
Removed last 'Flag' items found #54
Reborn theme set as default #22
Fix: filters are now working
Fix: Artist edition
This commit is contained in:
SUTJael 2013-12-03 15:50:00 +01:00
parent f16e1267fe
commit a53d308b6c
46 changed files with 9475 additions and 488 deletions

View file

@ -26,7 +26,6 @@ $(document).ajaxComplete(function () {
// ajaxPost
// Post the contents of a form.
function ajaxPost(url, input, source) {
//$('#' + input)
if ($(source)) {
$(source).off('click', function(){ ajaxPost(url, input, source); });
}
@ -45,23 +44,20 @@ function ajaxPut(url, source) {
// ajaxState
// Post the contents of a form without doing any observe() things.
function ajaxState(url, input) {
new Ajax.Request(url, {
method: 'post',
parameters: $(input).serialize(true),
onSuccess: processContents
});
$.ajax({
url : url,
type : 'POST',
data : $('#' + input).serialize(true),
success : processContents
});
} // ajaxState
// processContents
// Iterate over a response and do any updates we received.
function processContents(data, status) {
function processContents(data) {
$(data).find('content').each(function () {
$('#' + $(this).attr('div')).html($(this).text())
/*var text = $.parseHTML($(this).text(), document, true);
var dom = $(text);
dom.filter('script').each(function(){
$.globalEval(this.text || this.textContent || this.innerHtml || '');
});*/
})
$('#' + $(this).attr('div')).html($(this).text());
});
} // processContents