Ver código fonte

[core] jHueNotify shouldn't display HTML content

Enrico Berti 11 anos atrás
pai
commit
6a621f1de9
1 arquivos alterados com 2 adições e 0 exclusões
  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>");