Commit 372bbe9a authored by bbaer's avatar bbaer
Browse files

Added the intentional close event emitter to avoid the message problem.

parent 2d7156a7
......@@ -219,6 +219,7 @@ var QfqNS = QfqNS || {};
var isModal = false;
var messageButtons = [];
var message;
var that = this;
switch (obj.data.status) {
case "conflict":
......@@ -261,8 +262,8 @@ var QfqNS = QfqNS || {};
buttons: messageButtons
});
message.on('alert.reload', function () {
$(window).unload();
$(window).location.reload(true);
that.eventEmitter.emitEvent('qfqform.close-intentional', n.EventEmitter.makePayload(that, null));
window.location.reload(true);
});
message.show();
};
......
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