mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Don't try to use YUI when AJAX is not enabled
This commit is contained in:
parent
35241c761a
commit
f389ceff2a
1 changed files with 7 additions and 5 deletions
|
@ -454,6 +454,7 @@
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (ajaxenabled()) {
|
||||||
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
|
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
|
||||||
$strlockcancelled=get_string('lockcancelled','wiki');
|
$strlockcancelled=get_string('lockcancelled','wiki');
|
||||||
$strnojslockwarning=get_string('nojslockwarning','wiki');
|
$strnojslockwarning=get_string('nojslockwarning','wiki');
|
||||||
|
@ -481,6 +482,7 @@ intervalID=setInterval(function() {
|
||||||
$strnojslockwarning
|
$strnojslockwarning
|
||||||
</p></noscript>
|
</p></noscript>
|
||||||
";
|
";
|
||||||
|
}
|
||||||
// Print editor etc
|
// Print editor etc
|
||||||
print $content;
|
print $content;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue