fixed undeclared javascript variables

This commit is contained in:
Sebastian Mendel
2005-12-15 09:18:30 +00:00
parent 541c4b9111
commit 4c0f4addb5
2 changed files with 50 additions and 49 deletions

View File

@@ -11,6 +11,7 @@ $Source$
- check config file also on wakeup (bug #1376522)
* libraries/Config.class.php, libraries/common.lib.php:
fixed handling of https and $cfg['ForceSSL'] (bug #1379491)
* left.php: fixed undeclared javascript variables
2005-12-14 Michal Čihař <michal@cihar.com>
* libraries/config.default.php, Documentation.html: Transliterate invalid

View File

@@ -79,12 +79,12 @@ echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
<script type="text/javascript" language="javascript">
//<![CDATA[
function toggle( id, only_open ) {
el = document.getElementById('subel' + id);
var el = document.getElementById('subel' + id);
if ( ! el ) {
return false;
}
img = document.getElementById('el' + id + 'Img');
var img = document.getElementById('el' + id + 'Img');
if ( el.style.display == 'none' || only_open ) {
el.style.display = '';