mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +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) {
|
function processContents(data, status) {
|
||||||
$(data).find('content').each(function () {
|
$(data).find('content').each(function () {
|
||||||
$('#' + $(this).attr('div')).html($(this).text())
|
$('#' + $(this).attr('div')).html($(this).text())
|
||||||
var text = $.parseHTML($(this).text(), document, true);
|
/*var text = $.parseHTML($(this).text(), document, true);
|
||||||
var dom = $(text);
|
var dom = $(text);
|
||||||
dom.filter('script').each(function(){
|
dom.filter('script').each(function(){
|
||||||
$.globalEval(this.text || this.textContent || this.innerHtml || '');
|
$.globalEval(this.text || this.textContent || this.innerHtml || '');
|
||||||
});
|
});*/
|
||||||
})
|
})
|
||||||
} // processContents
|
} // processContents
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue