From 3c058d7f8bd76f7e0ec7442afc59ce4617b32b55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 17 Oct 2012 15:55:02 +0200 Subject: [PATCH] Whitespace entfernt und Identifier minifiziert um response zu verkleinern --- bin/mozilla/menu.pl | 23 +++++++++++------------ templates/webpages/menu/menu.html | 20 +------------------- 2 files changed, 12 insertions(+), 31 deletions(-) diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index fb4a81bdd..af860fd15 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -129,31 +129,30 @@ sub section_menu { my $anchor = $menuitem->{href}; my %common_args = ( - label => $label, - spacer => $spacer, - target => $menuitem->{target}, - item_id => "$id_prefix\_$id", + l => $label, + s => $spacer, + t => $menuitem->{target}, + id => "$id_prefix\_$id", height => 16, ); if (!$level) { # toplevel push @items, { %common_args, - img => "icon24 $icon_class", # make_image(size => 24, label => $item), - height => 24, - class => 'm', + i => "icon24 $icon_class", # make_image(size => 24, label => $item), + c => 'm', }; push @items, section_menu($menu, $item, "$id_prefix\_$id"); } elsif ($menuitem->{submenu}) { push @items, { %common_args, - img => "icon16 submenu", #make_image(label => 'submenu'), - class => 'sm', + i => "icon16 submenu", #make_image(label => 'submenu'), + c => 'sm', }; push @items, section_menu($menu, $item, "$id_prefix\_$id"); } elsif ($menuitem->{module}) { push @items, { %common_args, - img => "icon16 $icon_class", #make_image(size => 16, label => $item), - href => $anchor, - class => 'i', + i => "icon16 $icon_class", #make_image(size => 16, label => $item), + h => $anchor, + c => 'i', }; } } continue { diff --git a/templates/webpages/menu/menu.html b/templates/webpages/menu/menu.html index e0ad77ce6..8aaa41b32 100644 --- a/templates/webpages/menu/menu.html +++ b/templates/webpages/menu/menu.html @@ -4,24 +4,6 @@
- + -- 2.20.1