Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.
git-svn-id: http://core.svn.wordpress.org/trunk@21697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b2553f0cb9
commit
51fc60634a
|
@ -1,5 +1,7 @@
|
||||||
jQuery(document).ready( function($) {
|
jQuery(document).ready( function($) {
|
||||||
|
|
||||||
|
postboxes.add_postbox_toggles('comment');
|
||||||
|
|
||||||
var stamp = $('#timestamp').html();
|
var stamp = $('#timestamp').html();
|
||||||
$('.edit-timestamp').click(function () {
|
$('.edit-timestamp').click(function () {
|
||||||
if ($('#timestampdiv').is(":hidden")) {
|
if ($('#timestampdiv').is(":hidden")) {
|
||||||
|
|
|
@ -376,9 +376,9 @@ function wp_default_scripts( &$scripts ) {
|
||||||
'comma' => _x( ',', 'tag delimiter' ),
|
'comma' => _x( ',', 'tag delimiter' ),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), false, 1 );
|
$scripts->add( 'link', "/wp-admin/js/link$suffix.js", array( 'wp-lists', 'postbox' ), false, 1 );
|
||||||
|
|
||||||
$scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array('jquery') );
|
$scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array( 'jquery', 'postbox' ) );
|
||||||
$scripts->add_data( 'comment', 'group', 1 );
|
$scripts->add_data( 'comment', 'group', 1 );
|
||||||
did_action( 'init' ) && $scripts->localize( 'comment', 'commentL10n', array(
|
did_action( 'init' ) && $scripts->localize( 'comment', 'commentL10n', array(
|
||||||
'submittedOn' => __('Submitted on:')
|
'submittedOn' => __('Submitted on:')
|
||||||
|
|
Loading…
Reference in New Issue