Don't try to use YUI when AJAX is not enabled

This commit is contained in:
moodler 2007-09-03 06:15:58 +00:00
parent 35241c761a
commit f389ceff2a

View file

@ -454,11 +454,12 @@
"; ";
} }
} else { } else {
// OK, the page is now locked to us. Put in the AJAX for keeping the lock if (ajaxenabled()) {
$strlockcancelled=get_string('lockcancelled','wiki'); // OK, the page is now locked to us. Put in the AJAX for keeping the lock
$strnojslockwarning=get_string('nojslockwarning','wiki'); $strlockcancelled=get_string('lockcancelled','wiki');
$intervalms=WIKI_LOCK_RECONFIRM*1000; $strnojslockwarning=get_string('nojslockwarning','wiki');
print " $intervalms=WIKI_LOCK_RECONFIRM*1000;
print "
<script type='text/javascript'> <script type='text/javascript'>
var intervalID; var intervalID;
function handleResponse(o) { function handleResponse(o) {
@ -481,6 +482,7 @@ intervalID=setInterval(function() {
$strnojslockwarning $strnojslockwarning
</p></noscript> </p></noscript>
"; ";
}
// Print editor etc // Print editor etc
print $content; print $content;
} }