app/soc/content/js/menu-081026.js
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 02 Nov 2008 22:50:22 +0000
changeset 432 1851d67a1004
parent 426 114fe0f840c8
permissions -rw-r--r--
Add a generic method for getting a Keyname This patch will make logic/key_name.py obsolete in the future when everything is compliant with base.logic. This also makes the naming of already compliant logic modules generic and also fixes the _name field to be consistent with the naming in key_name.py. Note: This does not use Group/Sponsor, Group/School, Group/Organisation or Group/Club. Patch by: "Lennard de Rijk" <rijk0214@gmail.com> Reviewed by: Sverre Rabbelier

$(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;
  });
});