Skip to content
Snippets Groups Projects

6345 alert rework

Merged Benjamin Baer requested to merge 6345_AlertRework into master
Files
2
+ 9
1
@@ -113,6 +113,7 @@ var QfqNS = QfqNS || {};
this.fadeOutDuration = 400;
this.timerId = null;
this.parent = {};
this.identifier = false;
this.eventEmitter = new EventEmitter();
};
@@ -133,9 +134,14 @@ var QfqNS = QfqNS || {};
if (!n.QfqPage.alertManager) {
n.QfqPage.alertManager = new n.AlertManager({});
}
return n.QfqPage.alertManager;
};
n.Alert.prototype.setIdentifier = function (i) {
this.identifier = i;
};
/**
*
* @returns {number|jQuery}
@@ -225,12 +231,13 @@ var QfqNS = QfqNS || {};
}
this.parent = this.makeAlertContainerSingleton();
this.parent.addAlert(this);
if (this.modal) {
this.$modalDiv = $("<div>", {
class: "removeMe"
});
this.parent.createBlockScreen();
this.parent.createBlockScreen(this);
}
if (this.messageTitle) {
@@ -325,6 +332,7 @@ var QfqNS = QfqNS || {};
that.removeAlertContainer();
});
}
this.parent.removeAlert(this.identifier);
};
/**
Loading