Ignore:
Timestamp:
Jul 8, 2015, 10:12:12 PM (9 years ago)
Author:
SergeD
Message:

version 1.2.26 - see changelog for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/admin/js/admin.js

    r30484 r31232  
    88  });
    99  $(".ajax").colorbox({ scrolling: true, maxWidth: '90%', maxHeight: '90%' });
     10
     11  var page = $(location).attr('href');
     12  var pathName = page.substring(page.lastIndexOf('/') + 1, page.length);
     13  if (pathName) {
     14    $('#pwgMain #menubar dl ul.scroll li a').each(function(){
     15      var href = $(this).attr('href');
     16      if (pathName.indexOf(href) == 0) {
     17        $(this).addClass('active-on');
     18      } else {
     19        $(this).removeClass('active-on');
     20      }
     21    });
     22  }
    1023});
Note: See TracChangeset for help on using the changeset viewer.