Permalink
Browse files

improved js styling

  • Loading branch information...
1 parent 4d80ff6 commit 0e9ce951b3c52e305876faf52e09f188abe9de4b franz-josef-kaiser committed Jun 28, 2012
Showing with 15 additions and 10 deletions.
  1. +13 −9 js/apd.js
  2. +1 −1 plugin-dirs.php
  3. +1 −0 readme.md
View
@@ -1,10 +1,14 @@
-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) {
- $(this).removeClass('inactive').addClass('active');
- $(this).find('div.plugin-version-author-uri').removeClass('inactive').addClass('active');
+jQuery( document ).ready( function($)
+{
+ // Add the count
+ $( '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 )
+ {
+ $( this ).removeClass( 'inactive' ).addClass( 'active' );
+ $( this ).find( 'div.plugin-version-author-uri' ).removeClass( 'inactive' ).addClass( 'active' );
}
- });
-});
+ } );
+} );
View
@@ -4,7 +4,7 @@
Plugin Name: Additional Plugin Directories
Plugin URI: http://github.com/chrisguitarguy
Description: A framework to allow adding additional plugin directories to WordPress
-Version: 0.5.1
+Version: 0.5.2
Author: Christopher Davis
Contributors: Franz Josef Kaiser
Author URI: http://christopherdavis.me
View
@@ -21,3 +21,4 @@ CHANGELOG
0.4 Moved to OOP concept
0.5 Improved API - now supports different plugin locations aside from the `WP_CONTENT_DIR`.
0.5.1 Minor fix for left over debug code
+0.5.2 JS styling for readability

0 comments on commit 0e9ce95

Please sign in to comment.