app/soc/content/js/menu-081108.js
changeset 2801 0ee67cc9bd20
parent 2800 cd9eed2b787e
child 2802 7d70cef594a9
equal deleted inserted replaced
2800:cd9eed2b787e 2801:0ee67cc9bd20
     1 jQuery(function () {
       
     2   var new_item_text = "(new)";
       
     3   jQuery('#menu li.expandable').find('a').each(function () {
       
     4     if (jQuery(this).text().indexOf(new_item_text) > -1) {
       
     5       jQuery(this).css('color', 'red');
       
     6     }
       
     7   });
       
     8 
       
     9   jQuery('#side #menu li.expandable > a').dblclick(function () {
       
    10     window.location = jQuery(this).attr('href');
       
    11   });
       
    12 
       
    13   jQuery('#side #menu li.expandable > span').toggle(function () {
       
    14     jQuery(this).find("img").attr('src', '/soc/content/images/plus.gif')
       
    15     .end().parent().children("ul").toggle();
       
    16   }, function () {
       
    17     jQuery(this).find("img").attr('src', '/soc/content/images/minus.gif')
       
    18     .end().parent().children("ul").toggle();
       
    19     return false;
       
    20   });
       
    21 
       
    22   jQuery('#side #menu li.expandable > span').contents()
       
    23   .before('<img src="/soc/content/images/minus.gif" />');
       
    24 });