app/soc/content/js/menu-081026.js
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 04 Nov 2008 20:06:36 +0000
changeset 442 92c17629af0e
parent 426 114fe0f840c8
permissions -rw-r--r--
Fix wrong redirect when changing partial path or link name. Remove an unnecessary assignment in logic/models/base.py that would generate an error when an entity did not exist. Patch by: Lennard de Rijk Review by: Pawel Solyga

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