Hi!
If you have many interfaces (or interfaces with long names) you get dropdown box instead of tabbed representation in Firewall->Rules. Yesterday I noticed that only Firefox handles dropdown Interface box properly (neither IE nor Chrome reacted to changes of selection). Not very nice surprise when you without your laptop at client's site and urgently need to make changes -(

I think the problem is none of these browsers pay attention to <option onClick=...> handler. It seems modification below makes it work properly in all browsers. This is for 1.2.3-RELEASE.
# diff -ru pfsense-utils.inc.bak pfsense-utils.inc
--- pfsense-utils.inc.bak       2009-12-07 03:12:36.000000000 +0000
+++ pfsense-utils.inc   2010-03-03 17:49:33.000000000 +0000
@@ -2264,13 +2264,13 @@
       // then show a select item dropdown menubox.
       if($tabcharcount > 82) {
               echo "Currently viewing: ";
-               echo "<select name='TabSelect'>\n";
+ echo "<select name='TabSelect' onChange=\"document.location=this.options[this.selectedIndex].value\">\n";
               foreach ($tab_array as $ta) {
                       if($ta[1]=="true")
                               $selected = " SELECTED";
                       else
                               $selected = "";
- echo "<option onClick=\"document.location='{$ta[2]}';\"{$selected}>{$ta['0']}</option>\n"; + echo "<option value='{$ta[2]}' onClick=\"document.location='{$ta[2]}';\"{$selected}>{$ta['0']}</option>\n";
               }
               echo "</select>\n<p/>";
       }  else {

Thanks,
Evgeny.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Commercial support available - https://portal.pfsense.org

Reply via email to