Skip to content
Snippets Groups Projects
Unverified Commit 93994b13 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Eval script elemtents in HTML body response

parent b9bcc819
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,13 @@ $(document).ready(function(){ ...@@ -32,6 +32,13 @@ $(document).ready(function(){
var body = $('body'); var body = $('body');
$('head').remove(); $('head').remove();
body.html(data); body.html(data);
// Eval the script elements in the response
var dom = $(data);
dom.filter('script').each(function() {
eval(this.text || this.textContent || this.innerHTML || '');
});
body.removeAttr('id'); body.removeAttr('id');
body.attr('id', 'body-settings'); body.attr('id', 'body-settings');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment