X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fmenu%2Fmenu.html;h=f75035ab9b32d859fa87775e951ede76e51c5ace;hb=2ac999504a5039c972da30c0f6177b34f6e2177b;hp=5b24e805d9fc831e644ee5377fdf50d21ef502dc;hpb=621ed30aef8cf3802f07f9122a83393972faa7b3;p=kivitendo-erp.git diff --git a/templates/webpages/menu/menu.html b/templates/webpages/menu/menu.html index 5b24e805d..f75035ab9 100644 --- a/templates/webpages/menu/menu.html +++ b/templates/webpages/menu/menu.html @@ -1,39 +1,2 @@ -[%- USE L %] -[%- USE HTML %] - - -
-[%- FOREACH item IN sections %] -
[%- IF item.href %] - [% L.img_tag(item.img) %][% item.label %][%- ELSE %] - [% L.img_tag(item.img) %][% item.label %][%- END %] -
-[%- 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]);if(b[6])a.attr('target', b[6]);$('#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()})})})