Issue #32 - Fixed JavaScript code to comply with Moodle 27 and Moodle 28 rules.

This commit is contained in:
Daniel Thee Roperto
2016-09-23 16:15:05 +10:00
parent ded6b2d005
commit 20b1884697

View File

@@ -61,7 +61,7 @@ var auth_outage_warningbar = {
if (this.preview) {
// If one second before finish time, enfore finish. Otherwise, never finish it.
if (this.servertime == this.stops - 1) {
if (this.servertime === this.stops - 1) {
this.finish();
}
else {
@@ -84,8 +84,8 @@ var auth_outage_warningbar = {
},
ajaxCheckFinished: function (ajax) {
if (ajax.readyState == XMLHttpRequest.DONE) {
if (ajax.status == 200) {
if (ajax.readyState === XMLHttpRequest.DONE) {
if (ajax.status === 200) {
if (ajax.responseText.trim() === 'finished') {
this.finish();
}