MDL-46658 gradereport_grader: Style the ajax editing error

This issue is a part of the MDL-25544 Epic.
This commit is contained in:
Andrew Nicols 2014-09-05 09:37:34 +08:00
parent 1e646afd3c
commit b55d37f08b
2 changed files with 18 additions and 2 deletions

View File

@ -447,8 +447,8 @@ M.gradereport_grader.classes.ajax.prototype.submission_outcome = function(tid, o
outcome = this.report.Y.JSON.parse(outcome.responseText);
} catch(e) {
var message = M.str.gradereport_grader.ajaxfailedupdate;
message.replace(/\[1\]/, args.type);
message.replace(/\[2\]/, this.report.users[args.properties.userid]);
message = message.replace(/\[1\]/, args.type);
message = message.replace(/\[2\]/, this.report.users[args.properties.userid]);
this.display_submission_error(message, args.properties.cell);
return;

View File

@ -217,3 +217,19 @@
margin-left: 0;
margin-right: 10px;
}
.path-grade-report-grader .yui3-overlay {
border: 0;
background: none;
background-color: initial;
min-width: 200px;
}
.path-grade-report-grader .yui3-overlay {
background-color: white;
width: auto;
padding: 10px;
font-size: 12px;
border: 1px solid #ccc;
border-radius: 4px;
}