mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Disable javascript eval after ajax queries (double call)
This commit is contained in:
parent
68925f8621
commit
ac323ef250
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ function ajaxState(url, input) {
|
|||
function processContents(data, status) {
|
||||
$(data).find('content').each(function () {
|
||||
$('#' + $(this).attr('div')).html($(this).text())
|
||||
var text = $.parseHTML($(this).text(), document, true);
|
||||
/*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