ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9813: LJSUP-7333: We should count hits to LJTI...

Committer: ssafronova
LJSUP-7333: We should count hits to LJTIMES - ids for menu item
U   trunk/cgi-bin/bml/scheme/lanzelot.look
Modified: trunk/cgi-bin/bml/scheme/lanzelot.look
===================================================================
--- trunk/cgi-bin/bml/scheme/lanzelot.look	2010-12-08 12:10:57 UTC (rev 9812)
+++ trunk/cgi-bin/bml/scheme/lanzelot.look	2010-12-09 08:39:07 UTC (rev 9813)
@@ -266,7 +266,7 @@
         my $url = $menu->{url} || "#";
         my $js = qq{onmouseover="show_menu($id, $lastItem, 1)" onmouseout="hide_menu($id, $lastItem, 1)"};
         my $class = ($id == $lastItem) ? 'last' : '';
-        $ret .= qq!<li id="m$id" class='$class' $js><span><a href='$url'>$menu->{name}</a></span>!;
+        $ret .= qq!<li id="m$id" class='$class' $js><span><a href='$url' id="$menu->{id}">$menu->{name}</a></span>!;
         if (my @links = @{$menu->{'links'}}) {
             $ret .= qq{<ul class="submenu" id="s$id">};
             ## set class for last element to 'last'
@@ -275,7 +275,7 @@
                 my $class_opt = $link->{'class'} ? qq| class="$link->{'class'}"| : '';
                 my $link_text = $link->{'text'};
                 $link_text =~ s!<br\s*/?>!&nbsp;!ig;
-                $ret .= qq!\<li $class_opt><div><a href="$link->{url}">$link_text</a></div></li>\n!;
+                $ret .= qq!\<li $class_opt><div><a href="$link->{url}" id="$menu->{id}">$link_text</a></div></li>\n!;
             }
             $ret .= "</ul>";
         }

Tags: ljcom, look, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments