summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2011-04-21 09:18:05 +0200
committerAdrian Lang <mail@adrianlang.de>2011-04-21 09:21:00 +0200
commit4b1755bd15d9e5427c81f638e2b06d4716cd8642 (patch)
tree5a25a8a784b0ce2b1af1211faf2fa0bad2ff99a3 /lib/exe
parent30d5f023681653193648e9997dded12bbdcb3623 (diff)
downloadrpg-4b1755bd15d9e5427c81f638e2b06d4716cd8642.tar.gz
rpg-4b1755bd15d9e5427c81f638e2b06d4716cd8642.tar.bz2
Make locktimer more robust
If no HTML element with the id wiki__text exists, locktimer.init led to a JavaScript error.
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/js.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 645ab3cc4..5f376ee24 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -113,7 +113,7 @@ function js_out(){
js_runonstart("initSizeCtl('size__ctl','wiki__text')");
js_runonstart("initToolbar('tool__bar','wiki__text',toolbar)");
if($conf['locktime'] != 0){
- js_runonstart("locktimer.init(".($conf['locktime'] - 60).",'".js_escape($lang['willexpire'])."',".$conf['usedraft'].")");
+ js_runonstart("locktimer.init(".($conf['locktime'] - 60).",'".js_escape($lang['willexpire'])."',".$conf['usedraft'].", 'wiki__text')");
}
js_runonstart('scrollToMarker()');
js_runonstart('focusMarker()');