summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-25 12:31:47 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-25 12:31:47 -0500
commit620ac186ea01e168fbae8d69ce00fffc833ba9ae (patch)
treeaca7ae5f40406b1c45f92194d090d72c5ad2cda5 /usr/local/www/guiconfig.inc
parent79e99eb47e898159fd9e1b70e957b383326714c0 (diff)
downloadpfsense-620ac186ea01e168fbae8d69ce00fffc833ba9ae.zip
pfsense-620ac186ea01e168fbae8d69ce00fffc833ba9ae.tar.gz
Misc fixups
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 7835e77..ab5a1c9 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -899,10 +899,12 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) {
if ($tab_array_indent == '') {
$tab_array_indent = 0;
}
+
if ($tab_array_space == '') {
$tab_array_space = 1;
}
- if ($tab_array_char_limit == '' && !$no_drop_down) {
+
+ if ($tab_array_char_limit == '') {
$tab_array_char_limit = 82;
}
@@ -953,6 +955,11 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) {
foreach ($tab_array as $ta)
$tabcharcount = $tabcharcount + strlen($ta[0]);
+ if($no_drop_down == true) {
+ $tabcharcount = 0;
+ unset($tab_array_char_limit);
+ }
+
// If the character count of the tab names is > 670
// then show a select item dropdown menubox.
if($tabcharcount > $tab_array_char_limit) {
@@ -972,7 +979,6 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) {
echo " function tabs_will_go(obj){ document.location = obj.value; }";
echo "</script>";
} else {
- //////>>>
echo "<div class=\"newtabmenu\" style=\"margin:{$tab_array_space}px {$tab_array_indent}px; width:775px;\">\n";
echo "<!-- Tabbed bar code-->\n";
echo "<ul class=\"newtabmenu\">\n";
@@ -986,7 +992,6 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) {
$tabscounter++;
}
echo "</ul>\n</div>\n";
- ////////>>>>
}
}
OpenPOWER on IntegriCloud