Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.
git-svn-id: https://develop.svn.wordpress.org/trunk@21697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
903479fb96
commit
a7bc84096f
|
@ -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")) {
|
||||||
|
|
|
@ -378,7 +378,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$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