Move Post Format UI out of Publish meta box and into its own box. see #15638
git-svn-id: http://svn.automattic.com/wordpress/trunk@16678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -478,27 +478,6 @@ jQuery(document).ready( function($) {
|
||||
updateVisibility();
|
||||
});
|
||||
|
||||
$('.edit-post-format', '#post-formats').click(function () {
|
||||
$('#post-formats-select').slideDown("normal");
|
||||
$(this).hide();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.cancel-post-format', '#post-formats-select').click(function () {
|
||||
$('#post-formats-select').slideUp("normal");
|
||||
$('#post-format-' + $('#old-post-format').val()).attr('checked', true);
|
||||
$('#post-format-display').text( $('label[for="post-format-' + $('#old-post-format').val() + '"]', '#post-formats-select').text() );
|
||||
$('.edit-post-format').show();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.save-post-format', '#post-formats-select').click(function () {
|
||||
$('#post-formats-select').slideUp("normal");
|
||||
$('#post-format-display').text( $('label[for="' + $('input:checked', '#post-formats-select').attr('id') + '"]', '#post-formats-select').text() );
|
||||
$('.edit-post-format').show();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#timestampdiv').siblings('a.edit-timestamp').click(function() {
|
||||
if ($('#timestampdiv').is(":hidden")) {
|
||||
$('#timestampdiv').slideDown("normal");
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user