X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fmenu%2Fmenu.html;h=385ad810512e730d1734ea3176ab26c106bbaed7;hb=075bd42af8885aee3c18fe055a2c82b8b43f4cea;hp=25081d4f2f182349e037471fbdcf5bee9496d859;hpb=1a3569b9a81d6b9ca88941793926327051506122;p=kivitendo-erp.git diff --git a/templates/webpages/menu/menu.html b/templates/webpages/menu/menu.html index 25081d4f2..385ad8105 100644 --- a/templates/webpages/menu/menu.html +++ b/templates/webpages/menu/menu.html @@ -1,30 +1,2 @@ -[%- USE L %] - - - -
- -[%- FOREACH item IN sections %] - -[%- END %] -
- - +[%- USE JSON %] +$(function(){$([% JSON.json(sections) %]).each(function(i,b){var a=$('').append($('').append($('
').addClass(b[3])),$('').append(b[0]));if(b[5])a.attr('href', b[5]);$('#html-menu').append($('
').addClass(b[4]).addClass(b[1]).attr('id','mi'+b[2]).append(a))});$('#html-menu div.i, #html-menu div.sm').not('[id^='+$.cookie('html-menu-selection')+'_]').hide();$('#html-menu div.m').each(function(){$(this).click(function(){$.cookie('html-menu-selection',$(this).attr('id'));$('#html-menu div.mi').not('div.m').not('[id^='+$(this).attr('id')+'_]').hide();$('#html-menu div.mi[id^='+$(this).attr('id')+'_]').toggle()})})})