Skip to content
Snippets Groups Projects
Commit 377c5a6e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

header color changed to red

parent b9e1c168
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!589Feature error reporting
......@@ -273,11 +273,26 @@ GuiConnector.prototype.hideProcessing = function () {
GuiConnector.prototype.gatherReportData = function () {
return ServerConnector.getLoggedUser().then(function (user) {
return {
url: { value: window.location.href, tooltip: 'The error location. This information can help to narrow down the error source.' },
login: { value: user.getLogin(), tooltip: 'Your account name. This information is useful in case the issue is specific to a certain account.' },
email: { value: user.getEmail(), tooltip: 'Your contact email. If provided we might contact you for additional information.' },
browser: { value: navigator.userAgent, tooltip: 'Your browser user agent. Many issues are specific to certain browsers. This information is important to identify those.' },
timestamp: { value: +new Date(), tooltip: 'The error time. This information is useful to link the issue to a specific event on the server.' } // TODO: Submission time rather than server time for now
url: {
value: window.location.href,
tooltip: 'The error location. This information can help to narrow down the error source.'
},
login: {
value: user.getLogin(),
tooltip: 'Your account name. This information is useful in case the issue is specific to a certain account.'
},
email: {
value: user.getEmail(),
tooltip: 'Your contact email. If provided we might contact you for additional information.'
},
browser: {
value: navigator.userAgent,
tooltip: 'Your browser user agent. Many issues are specific to certain browsers. This information is important to identify those.'
},
timestamp: {
value: +new Date(),
tooltip: 'The error time. This information is useful to link the issue to a specific event on the server.'
} // TODO: Submission time rather than server time for now
};
});
};
......@@ -307,7 +322,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
},
modal: true,
title: "ERROR",
close: function() {
close: function () {
$(this).dialog('destroy').remove();
}
}).siblings('.ui-dialog-titlebar').css("background", "red");
......@@ -354,7 +369,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
height: 'auto',
width: '500px',
modal: true,
close: function() {
close: function () {
$(this).dialog('destroy').remove();
},
buttons: {
......@@ -376,7 +391,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
$(this).dialog('close');
}
}
}).dialog("open");
}).dialog("open").siblings('.ui-dialog-titlebar').css("background", "red");
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment