Răsfoiți Sursa

[core] jHueNotify shouldn't display HTML content

Enrico Berti 11 ani în urmă
părinte
comite
6a621f1de9
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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>");