summaryrefslogtreecommitdiff
path: root/core/js/menu.js
blob: 7ca166e766a4ed00e331b05eec05db968b2c894e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$("document").ready(function() {
  $("#gSiteMenu ul:not(:first)").css("display", "none");
  $("#gSiteMenu li").mouseover(function (ev) {
    $(this).children("ul").css("display", "block");
    $(this).children("ul").find("li").css("clear", "both");

    this.dropdown_open = true;
  });
  $("#gSiteMenu li").mouseout(function (ev) {
    $(this).children("ul").css("display", "none");
    this.dropdown_open = false;
  });

  $("#gSiteMenu li a").click(function () {
    var href = $(this).attr("href");
    if (href == "#") {
      return false;
    }
    return true;
  });
});