Permalink
Browse files

Dollar shortcut for jQuery. Feel free to ignore, but I think it's muc…

…h more legible that way!
  • Loading branch information...
julien-c committed Mar 21, 2012
1 parent c588fa0 commit 3ad74658a78b262811aa94f90e5386c5645c81c7
Showing with 6 additions and 6 deletions.
  1. +6 −6 js/apd.js
View
@@ -1,10 +1,10 @@
jQuery(document).ready(function(){
jQuery('li.all a').removeClass('current').find('span.count').html('(' + cd_apd.count + ')');
jQuery('.wp-list-table.plugins tr').each(function(){
var is_active = jQuery(this).find('a.cd-apd-deactivate');
jQuery(document).ready(function($){
$('li.all a').removeClass('current').find('span.count').html('(' + cd_apd.count + ')');
$('.wp-list-table.plugins tr').each(function(){
var is_active = $(this).find('a.cd-apd-deactivate');
if(is_active.length) {
jQuery(this).removeClass('inactive').addClass('active');
jQuery(this).find('div.plugin-version-author-uri').removeClass('inactive').addClass('active');
$(this).removeClass('inactive').addClass('active');
$(this).find('div.plugin-version-author-uri').removeClass('inactive').addClass('active');
}
});
});

0 comments on commit 3ad7465

Please sign in to comment.