@@ -295,73 +295,71 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
logger.error(error);
varerrorData=self.getErrorMessageForError(error);
varmessage=errorData.message;
varstacktrace={
value:errorData.stack,
tooltip:'The error stacktrace. The sequence of events that triggered this particular error.'
};
self._errorDialog=document.createElement('div');
self._errorDialog.innerHTML='<span class="ui-icon ui-icon-info" style="float: right;" title="The error message. This might not be human readable. If this issue persists you should should contact your administrator."></span>'+
'<span>'+message+'</span>';
self.gatherReportData().then(function (data){
self._errorDialog.innerHTML+='<p class="report-dialog-warning">If you agree to submit the following information to the Minerva maintainers please uncheck all boxes that might contain sensitive data.</p>';
self._errorDialog.innerHTML='<span class="ui-icon ui-icon-info" style="float: right;" title="The error message. This might not be human readable. If this issue persists you should should contact your administrator."></span>'+
'<span>'+errorData.message+'</span>';
self.gatherReportData().then(function (data){
self._errorDialog.innerHTML+='<p class="report-dialog-warning">If you agree to submit the following information to the Minerva maintainers please uncheck all boxes that might contain sensitive data.</p>';
if (ServerConnector.getSessionData().getLogin()==="anonymous"){
return{
message:error.message+"<p>Please <a href=\"login.xhtml?from="+encodeURI(window.location.href)+"\">login</a> to access this resource</p>",
stack:error.stack
};
errorData.message="<p>Please <a href=\"login.xhtml?from="+encodeURI(window.location.href)+"\">login</a> to access this resource</p>";
}else{
return{
message:error.message+"<p>Please <a href=\"login.xhtml?from="+encodeURI(window.location.href)+"\">login</a> "+"as a different user or ask your administrator to change the permissions to access this resource.</p>",
stack:error.stack
};
errorData.message+="<p>Please <a href=\"login.xhtml?from="+encodeURI(window.location.href)+"\">login</a> "+"as a different user or ask your administrator to change the permissions to access this resource.</p>";