mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180.
git-svn-id: http://core.svn.wordpress.org/trunk@21947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b9ab93511
commit
ffaa2d0330
@ -528,16 +528,6 @@ jQuery(document).ready( function($) {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#post').submit(function(e){
|
||||
if ( !updateText() ) {
|
||||
e.preventDefault();
|
||||
$('#timestampdiv').show();
|
||||
$('#publishing-action .ajax-loading').css('visibility', 'hidden');
|
||||
$('#publish').prop('disabled', false).removeClass('button-primary-disabled');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('#post-status-select').siblings('a.edit-post-status').click(function() {
|
||||
if ($('#post-status-select').is(":hidden")) {
|
||||
$('#post-status-select').slideDown('fast');
|
||||
|
Loading…
Reference in New Issue
Block a user