Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8054
Modified Files:
serendipity_functions_installer.inc.php
Log Message:
Show correct folding-icons and behaviour, if $folding = false
Index: serendipity_functions_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_installer.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- serendipity_functions_installer.inc.php 16 Jun 2004 18:56:44 -0000 1.13
+++ serendipity_functions_installer.inc.php 16 Jun 2004 22:21:55 -0000 1.14
@@ -316,7 +316,7 @@
}
}
-var state='';
+var state='<?php echo ($folding === true ? '' : 'none'); ?>';
function showConfigAll(count) {
if (document.getElementById) {
for (i = 1; i <= count; i++) {
@@ -346,7 +346,7 @@
<?php }
if ( sizeof($t['categories']) > 1 ) { ?>
<div align="right">
- <a style="border:0; text-decoration: none" href="#" onclick="showConfigAll(<?php echo count($t['categories']); ?>)" title="<?php echo TOGGLE_ALL; ?>"><img src="pixel/plus.png" id="optionall" alt="+/-" border="0" /> <?php echo TOGGLE_ALL; ?></a></a><br />
+ <a style="border:0; text-decoration: none" href="#" onclick="showConfigAll(<?php echo count($t['categories']); ?>)" title="<?php echo TOGGLE_ALL; ?>"><img src="pixel/<?php echo ($folding === true ? 'plus' : 'minus'); ?>.png" id="optionall" alt="+/-" border="0" /> <?php echo TOGGLE_ALL; ?></a></a><br />
</div>
<?php
}
@@ -360,7 +360,7 @@
?>
<tr>
<th align="left" colspan="2" style="padding-left: 15px;">
- <a style="border:0; text-decoration: none" href="#" onclick="showConfig('el<?php echo $el_count; ?>'); return false" title="<?php echo TOGGLE_OPTION; ?>"><img src="pixel/plus.png" id="optionel<?php echo $el_count; ?>" alt="+/-" border="0" /> <?php echo $key; ?></a></th>
+ <a style="border:0; text-decoration: none" href="#" onclick="showConfig('el<?php echo $el_count; ?>'); return false" title="<?php echo TOGGLE_OPTION; ?>"><img src="pixel/<?php echo ($folding === true ? 'plus' : 'minus'); ?>.png" id="optionel<?php echo $el_count; ?>" alt="+/-" border="0" /> <?php echo $key; ?></a></th>
</tr>
<?php } ?>
<tr>
|