summaryrefslogtreecommitdiff
path: root/core/js/menu.js
blob: b5f0a6eee88327f7bfe2e5f15c02cb1fe62482cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$("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;
    } else if (href.match("^#") == "#") {
      alert("Display href: " + href.substring(1) + "in a popup");
      return false;
    }
    return true;
  });
});