diff options
author | Adrian Lang <mail@adrianlang.de> | 2011-04-21 09:18:05 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-04-21 09:21:00 +0200 |
commit | 4b1755bd15d9e5427c81f638e2b06d4716cd8642 (patch) | |
tree | 5a25a8a784b0ce2b1af1211faf2fa0bad2ff99a3 /lib/exe/js.php | |
parent | 30d5f023681653193648e9997dded12bbdcb3623 (diff) | |
download | rpg-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/js.php')
-rw-r--r-- | lib/exe/js.php | 2 |
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()'); |