소스 검색

Eval script elemtents in HTML body response

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
tags/v12.0.0beta3
Lukas Reschke 7 년 전
부모
커밋
93994b1320
No account linked to committer's email address
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      apps/updatenotification/js/admin.js

+ 7
- 0
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');
}

Loading…
취소
저장