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

git-svn-id: https://develop.svn.wordpress.org/trunk@20415 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-04-10 00:34:39 +00:00
parent 98f37d532d
commit 5a6dc7c758
2 changed files with 13 additions and 8 deletions

View File

@ -53,11 +53,4 @@ jQuery(document).ready(function($) {
return false;
} );
// Theme details
$('#availablethemes').on('click', 'a.theme-detail', function (event) {
$(this).siblings('.themedetaildiv').toggle();
return false;
});
});

View File

@ -1,4 +1,16 @@
/*
/**
* Theme Browsing
*
* Controls visibility of theme details on manage and install themes pages.
*/
jQuery( function($) {
$('#availablethemes').on( 'click', '.theme-detail', function (event) {
$(this).parent().siblings('.themedetaildiv').toggle();
event.preventDefault();
});
});
/**
* Theme Install
*
* Displays theme previews on theme install pages.