MDL-54795 mod_assign: Fix notifications JS error in grading interface

This commit is contained in:
Jake Dallimore 2016-06-28 10:26:47 +08:00
parent ac8d6cff54
commit 9e12b0faf7
4 changed files with 13 additions and 7 deletions

View File

@ -600,7 +600,9 @@ EditorNotify.prototype = {
this.hideTimer = Y.later(intTimeout, this, function() {
Y.log('Hide Atto notification.', 'debug', LOGNAME_NOTIFY);
this.hideTimer = null;
this.messageOverlay.hide(true);
if (this.messageOverlay.inDoc()) {
this.messageOverlay.hide(true);
}
});
return this;

File diff suppressed because one or more lines are too long

View File

@ -595,7 +595,9 @@ EditorNotify.prototype = {
this.hideTimer = Y.later(intTimeout, this, function() {
this.hideTimer = null;
this.messageOverlay.hide(true);
if (this.messageOverlay.inDoc()) {
this.messageOverlay.hide(true);
}
});
return this;

View File

@ -127,7 +127,9 @@ EditorNotify.prototype = {
this.hideTimer = Y.later(intTimeout, this, function() {
Y.log('Hide Atto notification.', 'debug', LOGNAME_NOTIFY);
this.hideTimer = null;
this.messageOverlay.hide(true);
if (this.messageOverlay.inDoc()) {
this.messageOverlay.hide(true);
}
});
return this;