mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Don't try to use YUI when AJAX is not enabled
This commit is contained in:
parent
35241c761a
commit
f389ceff2a
@ -454,11 +454,12 @@
|
||||
";
|
||||
}
|
||||
} else {
|
||||
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
|
||||
$strlockcancelled=get_string('lockcancelled','wiki');
|
||||
$strnojslockwarning=get_string('nojslockwarning','wiki');
|
||||
$intervalms=WIKI_LOCK_RECONFIRM*1000;
|
||||
print "
|
||||
if (ajaxenabled()) {
|
||||
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
|
||||
$strlockcancelled=get_string('lockcancelled','wiki');
|
||||
$strnojslockwarning=get_string('nojslockwarning','wiki');
|
||||
$intervalms=WIKI_LOCK_RECONFIRM*1000;
|
||||
print "
|
||||
<script type='text/javascript'>
|
||||
var intervalID;
|
||||
function handleResponse(o) {
|
||||
@ -481,6 +482,7 @@ intervalID=setInterval(function() {
|
||||
$strnojslockwarning
|
||||
</p></noscript>
|
||||
";
|
||||
}
|
||||
// Print editor etc
|
||||
print $content;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user