소스 검색

[core] jHueNotify shouldn't display HTML content

Enrico Berti 11 년 전
부모
커밋
6a621f1de9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      desktop/core/static/js/jquery.notify.js

+ 2 - 0
desktop/core/static/js/jquery.notify.js

@@ -58,6 +58,8 @@
             el.css("top", $(".jHueNotify").last().position().top + $(".jHueNotify").last().outerHeight() + MARGIN - $(window).scrollTop());
         }
 
+        _this.options.message = $("<span>").html(_this.options.message).text();
+
         if (_this.options.level == TYPES.ERROR){
             el.addClass("alert-error");
             el.find(".message").html("<i class='fa fa-exclamation-triangle'></i> <strong>" + _this.options.message + "</strong>");