Skip to content
Snippets Groups Projects

Alerts

Merged Benjamin Baer requested to merge alerts into master
3 files
+ 28
8
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -31,6 +31,10 @@ var QfqNS = QfqNS || {};
this.blockingAlert = {};
this.eventEmitter = new EventEmitter();
this.regularCheck = {};
this.parent = $(".container") || $(".container-fluid");
if(this.parent.length === 0) {
this.parent = $(".container-fluid");
}
$("body").append(this.$container);
console.log("Created Alert Container");
@@ -102,15 +106,10 @@ var QfqNS = QfqNS || {};
.addClass("blockscreenQfq")
.appendTo(this.$container);
$blockScreen.css({
'position': 'fixed',
'left': 0,
'right': 0,
'top': 0,
'z-index': 998,
'background': 'rgba(0,0,0,0.5)',
'width': '100%',
'height': Math.max($(document).height(), $(window).height()) + "px"
});
this.parent.addClass("blur");
var that = this;
this.screenBlocked = true;
@@ -137,6 +136,7 @@ var QfqNS = QfqNS || {};
n.AlertManager.prototype.removeModalAlert = function() {
if (this.screenBlocked) {
$(".blockscreenQfq").remove();
this.parent.removeClass("blur");
clearInterval(this.regularCheck);
this.screenBlocked = false;
}
Loading