app/soc/content/js/menu-081026.js
author Todd Larsen <tlarsen@google.com>
Mon, 27 Oct 2008 19:31:51 +0000
changeset 427 d0de6c01d768
parent 426 114fe0f840c8
permissions -rw-r--r--
The pretty blue triangles from Google Code! Patch by: Todd Larsen

$(function() {
  var li = $('#side #menu span').parents('li').filter(':has(ul)');
  li.children('a').dblclick(function() {
    window.location = $(this).attr('href');
  }).add(li.children('span')).click(function() {
    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
    return false;
  });
});
$(function() {
  var li = $('#side #menu span').parents('li').filter(':has(ul)');
  li.children('a').dblclick(function() {
    window.location = $(this).attr('href');
  }).add(li.children('span')).click(function() {
    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
    return false;
  });
});
$(function() {
  var li = $('#side #menu span').parents('li').filter(':has(ul)');
  li.children('a').dblclick(function() {
    window.location = $(this).attr('href');
  }).add(li.children('span')).click(function() {
    $($(this).parents('li')[0]).toggleClass('closed').children("ul").toggle();
    return false;
  });
});