[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

fix for des::navbar



I have just started using the built in navbar code of wml again and
found that there is a problem with nesting and the epilog .... 
I think prolog and epilog should occure next to the button even
when there is a sub navbar ... at the moment the sub navbar comes
between the end of the button and the epilog ... here is the patch

--- /usr/pack/wml-2.0.3-za/lib/include/des/navbar.wml   Wed Sep  6
15:53:49 2000
+++ .wml/navbar.wml     Tue Sep 12 17:16:41 2000
@@ -517,10 +517,6 @@
             }
         }
 
-        if ($menu ne '' and $NAVBAR{"$menu"}->{OPEN}) {
-            $O .= &navbar_render_<lang:current />($menu, $select, $subselected,
-                $txtcol_n, $txtcol_s, $txtonly, $nohints, $nbcount);
-        }
 
         
         #
@@ -539,6 +535,13 @@
                 }
             }
         }
+        #
+        # Any Sub Menus
+        #
+        if ($menu ne '' and $NAVBAR{"$menu"}->{OPEN}) {
+            $O .= &navbar_render_<lang:current />($menu, $select, $subselected,
+                $txtcol_n, $txtcol_s, $txtonly, $nohints, $nbcount);
+        }
 
     }


-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker@ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com