mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #32 - Fixed JavaScript code to comply with Moodle 27 and Moodle 28 rules.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user