Fix showing/hiding theme details and move code from theme-preview.js to theme.js. see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b909e55294
commit
10d045358d
|
@ -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;
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue