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