projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
590708a
)
Layout: Icons in Javascript Menü gefixt
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 24 Jun 2015 14:10:43 +0000
(16:10 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:37:26 +0000
(16:37 +0200)
SL/Layout/Javascript.pm
patch
|
blob
|
history
diff --git
a/SL/Layout/Javascript.pm
b/SL/Layout/Javascript.pm
index
5ddb4d7
..
26539de
100644
(file)
--- a/
SL/Layout/Javascript.pm
+++ b/
SL/Layout/Javascript.pm
@@
-103,7
+103,7
@@
sub create_menu {
if ($menu_item->{submenu} || (!defined($menu_item->{module}) && !defined($menu_item->{href}))) {
$item->{subitems} = [];
- $item->{image} = _icon_path(
"$name.png"
);
+ $item->{image} = _icon_path(
$menu_item->{ICON}
);
$self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1);
} else {
@@
-118,7
+118,7
@@
sub _icon_path {
$size ||= 16;
- my $img = "image/icons/${size}x${size}/$label";
+ my $img = "image/icons/${size}x${size}/$label
.png
";
return unless -f $img;
return $img;