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:
parent
de35a43d54
commit
6b40e833ea
4 changed files with 34 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue