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:
parent
98f37d532d
commit
5a6dc7c758
@ -53,11 +53,4 @@ jQuery(document).ready(function($) {
|
|||||||
|
|
||||||
return false;
|
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
|
* Theme Install
|
||||||
*
|
*
|
||||||
* Displays theme previews on theme install pages.
|
* Displays theme previews on theme install pages.
|
||||||
|
Loading…
Reference in New Issue
Block a user