using "description" in the title attribute of the links
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 14:09:13 +0000 (14:09 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 14:09:13 +0000 (14:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1725 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/cgi-bin/usr_group-setup.cgi

index f632043..0f3d84a 100755 (executable)
@@ -146,13 +146,14 @@ my $uri = $cgi->url(-relative=>1);
 my $top;
 for my $grp ( permission::grp_tree->search( {parent=>undef} ) ) {
        my $name = $grp->name;
+       my $desc = $grp->description || $grp->name;
        $top = $grp->id;
        $name =~ s/'/\\'/og;
        print <<"       HEADER";
 <div style="float: left;">
        <script language='javascript'>
         var tree = new dTree("tree");
-       tree.add($grp, -1, "$name", "$uri?action=child&id=$grp", "$name");
+       tree.add($grp, -1, "$name", "$uri?action=child&id=$grp", "$desc");
        HEADER
        $top = $grp->id;
        last;
@@ -160,9 +161,10 @@ for my $grp ( permission::grp_tree->search( {parent=>undef} ) ) {
 
 for my $grp ( permission::grp_tree->search_like( {parent => '%'}, {order_by => 'id'} ) ) {
        my $name = $grp->name;
+       my $desc = $grp->description || $grp->name;
        $name =~ s/'/\\'/og;
        my $parent = $grp->parent;
-       print "\ttree.add($grp, $parent, \"$name\", \"$uri?action=child&id=$grp\", \"$name\");\n";
+       print "\ttree.add($grp, $parent, \"$name\", \"$uri?action=child&id=$grp\", \"$desc\");\n";
 }
 
 print <<HEADER;