diff options
-rw-r--r-- | apps/updatenotification/js/admin.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index 589765348af..93b42295a23 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -32,6 +32,13 @@ $(document).ready(function(){ var body = $('body'); $('head').remove(); 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.attr('id', 'body-settings'); } |