|
@@ -48,6 +48,8 @@
|
|
|
var _this = this;
|
|
var _this = this;
|
|
|
var MARGIN = 10;
|
|
var MARGIN = 10;
|
|
|
|
|
|
|
|
|
|
+ _this.options.message = $("<span>").html(_this.options.message).text(); // escape HTML messages
|
|
|
|
|
+
|
|
|
if (_this.options.level == TYPES.ERROR && $(".jHueNotify.alert-error").length > 0) {
|
|
if (_this.options.level == TYPES.ERROR && $(".jHueNotify.alert-error").length > 0) {
|
|
|
$(".jHueNotify.alert-error").find(".message").html("<i class='fa fa-exclamation-triangle'></i> <strong>" + _this.options.message + "</strong>");
|
|
$(".jHueNotify.alert-error").find(".message").html("<i class='fa fa-exclamation-triangle'></i> <strong>" + _this.options.message + "</strong>");
|
|
|
}
|
|
}
|
|
@@ -64,7 +66,6 @@
|
|
|
el.css("top", $(".jHueNotify").last().position().top + $(".jHueNotify").last().outerHeight() + MARGIN - $(window).scrollTop());
|
|
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) {
|
|
if (_this.options.level == TYPES.ERROR) {
|
|
|
el.addClass("alert-error");
|
|
el.addClass("alert-error");
|