Commit 7da56956 authored by bbaer's avatar bbaer
Browse files

Changing buttons for the dirty Events depending on status, no an ignore option...

Changing buttons for the dirty Events depending on status, no an ignore option should be displayed for the user.
parent cbfee231
......@@ -224,19 +224,17 @@ var QfqNS = QfqNS || {};
n.QfqForm.prototype.dirtyNotifyDenied = function (obj) {
var messageType;
var isModal = false;
var messageButtons = [];
var isModal = true;
var messageButtons = [{
label: "Reload",
eventName: 'reload'
}];
var message;
var that = this;
switch (obj.data.status) {
case "conflict":
messageType = "error";
isModal = true;
messageButtons.push({
label: "Reload",
eventName: 'reload'
});
this.setButtonEnabled(this.getSaveButton(), false);
this.getSaveButton().removeClass(this.getSaveButtonAttentionClass());
this.setButtonEnabled(this.getDeleteButton(), false);
......@@ -245,6 +243,10 @@ var QfqNS = QfqNS || {};
break;
case "conflict_allow_force":
messageType = "warning";
messageButtons.push({
label: "Ignore",
eventName: 'ignore'
});
break;
case "error":
messageType = "error";
......
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