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

fixed up the playlist and the auto refresh with jquery

This commit is contained in:
John Moore 2013-07-27 11:30:17 -05:00
parent de35a43d54
commit 6b40e833ea
4 changed files with 34 additions and 22 deletions

View file

@ -49,7 +49,12 @@ function ajaxState(url, input) {
// processContents
// Iterate over a response and do any updates we received.
function processContents(data, status) {
$(data).find("content").each(function () {
$('#' + $(this).attr('div')).html($(this).text())
$(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 || '');
});
})
} // processContents