diff options
author | Scott Dale <sdale@pfsense.org> | 2007-05-17 01:12:16 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-05-17 01:12:16 +0000 |
commit | 25d2d037d2b2c302387420965f3b70710a9adbb9 (patch) | |
tree | a80594dedb4a6b4278d3584a5a2a76437b6b59b3 /usr | |
parent | 7995441eac6b0d44d96364f3e0c48fe66008af3f (diff) | |
download | pfsense-25d2d037d2b2c302387420965f3b70710a9adbb9.zip pfsense-25d2d037d2b2c302387420965f3b70710a9adbb9.tar.gz |
provide function to show configuration
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/index.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index c937bbb..1cfddbb 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -204,6 +204,16 @@ function addDiv(selectedDiv){ showSave(); } +function configureDiv(selectedDiv){ + selectIntLink = selectedDiv + "-settings"; + d = document; + textlink = d.getElementById(selectIntLink); + if (textlink.style.display == "none") + Effect.BlindDown(selectIntLink, {duration:1}); + else + Effect.BlindUp(selectIntLink, {duration:1}); +} + function showDiv(selectedDiv,swapButtons){ //appear element Effect.BlindDown(selectedDiv, {duration:1}); @@ -437,7 +447,7 @@ echo $jscriptstr; <?php echo $nicename;?> </div> <div align="right" style="float:right;"> - <div id="<?php echo $widgetname;?>-settings" onclick='return configureDiv("<?php echo $widgetname;?>",false)' style="display:none; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_configure.gif" /></div> + <div id="<?php echo $widgetname;?>-configure" onclick='return configureDiv("<?php echo $widgetname;?>")' style="display:none; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_configure.gif" /></div> <div id="<?php echo $widgetname;?>-open" onclick='return showDiv("<?php echo $widgetname;?>",true)' style="display:<?php echo $showdiv;?>; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_open.gif" /></div> <div id="<?php echo $widgetname;?>-min" onclick='return minimizeDiv("<?php echo $widgetname;?>",true)' style="display:<?php echo $mindiv;?>; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_minus.gif"/></div> <div id="<?php echo $widgetname;?>-close" onclick='return closeDiv("<?php echo $widgetname;?>",true)' style="display:inline; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_close.gif" /></div> |