Commit eebd5e69 authored by bbaer's avatar bbaer
Browse files

removing the blackout screen when modal gets dismissed

parent 1c72066e
......@@ -152,7 +152,10 @@ var QfqNS = QfqNS || {};
* @private
*/
n.Alert.prototype.removeAlertContainer = function () {
$(n.Alert.constants.alertContainerSelector).remove();
$(n.Alert.constants.alertContainerSelector + "> div").remove();
if (this.modal) {
$("#alert-interactive").remove();
}
};
/**
......@@ -228,9 +231,11 @@ var QfqNS = QfqNS || {};
$alertContainer = this.makeAlertContainerSingleton();
if (this.modal) {
this.$modalDiv = $("<div>");
this.$modalDiv.css('z-index', 1000);
$alertContainer.css('position', 'fixed');
$alertContainer.css('left', 0);
$alertContainer.css('top', 0);
$alertContainer.css('z-index', 999);
$alertContainer.css('background', 'rgba(0,0,0,0.5)');
$alertContainer.css('width', "100%");
$alertContainer.css('height', Math.max($(document).height(), $(window).height()) + "px");
......@@ -323,9 +328,10 @@ var QfqNS = QfqNS || {};
});
} else {
this.$alertDiv.fadeOut(this.fadeOutDuration, function(){
this.$alertDiv.remove();
this.$alertDiv = null;
this.shown = false;
that.$alertDiv.remove();
that.$alertDiv = null;
that.shown = false;
that.removeAlertContainer();
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment