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:
Andrew Nacin 2012-09-21 22:27:51 +00:00
parent 8b9ab93511
commit ffaa2d0330

View File

@ -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');