WordPress.org

Make WordPress Core

Changeset 20415


Ignore:
Timestamp:
04/10/2012 12:34:39 AM (10 years ago)
Author:
koopersmith
Message:

Fix showing/hiding theme details and move code from theme-preview.js to theme.js. see #20403.

Location:
trunk/wp-admin/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/theme-preview.dev.js

    r19840 r20415  
    5454        return false;
    5555    } );
    56 
    57     // Theme details
    58     $('#availablethemes').on('click', 'a.theme-detail', function (event) {
    59         $(this).siblings('.themedetaildiv').toggle();
    60         return false;
    61     });
    62 
    6356});
  • trunk/wp-admin/js/theme.dev.js

    r20242 r20415  
    1 /*
     1/**
     2 * Theme Browsing
     3 *
     4 * Controls visibility of theme details on manage and install themes pages.
     5 */
     6jQuery( function($) {
     7    $('#availablethemes').on( 'click', '.theme-detail', function (event) {
     8        $(this).parent().siblings('.themedetaildiv').toggle();
     9        event.preventDefault();
     10    });
     11});
     12
     13/**
    214 * Theme Install
    315 *
Note: See TracChangeset for help on using the changeset viewer.