Line | |
---|
1 | $("#menuSwitcher").click( function() { |
---|
2 | var mb = $("#menubar"); |
---|
3 | if (mb.is(":visible")) { |
---|
4 | mb.css("display", ""); // remove inline css in case browser resizes larger |
---|
5 | } |
---|
6 | else { |
---|
7 | $(".categoryActions,.actionButtons,.switchBox").css("display", ""); |
---|
8 | mb.css("top", $(this).position().top + $(this).outerHeight(true)) |
---|
9 | .css("display", "block"); |
---|
10 | } |
---|
11 | }); |
---|
12 | |
---|
13 | $("#menubar DT").click( function() { |
---|
14 | var $this = $(this); |
---|
15 | if ($this.css("display") != "block") |
---|
16 | return; // menu is horizontal |
---|
17 | var dd = $this.siblings("DD"); |
---|
18 | if (dd.length) { |
---|
19 | if (dd.is(":visible")) |
---|
20 | dd.css("display", ""); // remove inline css in case browser resizes larger |
---|
21 | else |
---|
22 | dd.css("display", "block"); |
---|
23 | } |
---|
24 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.