mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Move Post Format UI out of Publish meta box and into its own box. see #15638
git-svn-id: https://develop.svn.wordpress.org/trunk@16678 602fd350-edb4-49c9-b593-d223f7449a82
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");
|
||||
|
||||
Reference in New Issue
Block a user