Changeset 9678
- Timestamp:
- 11/14/2008 08:39:39 AM (16 years ago)
- Location:
- trunk/wp-admin/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/page.js
r9641 r9678 33 33 var originalDate = new Date( $('#hidden_aa').val(), $('#hidden_mm').val() -1, $('#hidden_jj').val(), $('#hidden_hh').val(), $('#hidden_mn').val()); 34 34 var currentDate = new Date( $('#cur_aa').val(), $('#cur_mm').val() -1, $('#cur_jj').val(), $('#cur_hh').val(), $('#cur_mn').val()); 35 if ( attemptedDate > currentDate ) {35 if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) { 36 36 var publishOn = postL10n.publishOnFuture; 37 37 $('#publish').val( postL10n.schedule ); 38 } else if ( $('#original_post_status').val() != 'publish' ) {38 } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) { 39 39 var publishOn = postL10n.publishOn; 40 40 $('#publish').val( postL10n.publish ); -
trunk/wp-admin/js/post.js
r9654 r9678 220 220 var originalDate = new Date( $('#hidden_aa').val(), $('#hidden_mm').val() -1, $('#hidden_jj').val(), $('#hidden_hh').val(), $('#hidden_mn').val()); 221 221 var currentDate = new Date( $('#cur_aa').val(), $('#cur_mm').val() -1, $('#cur_jj').val(), $('#cur_hh').val(), $('#cur_mn').val()); 222 if ( attemptedDate > currentDate ) {222 if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) { 223 223 var publishOn = postL10n.publishOnFuture; 224 224 $('#publish').val( postL10n.schedule ); 225 } else if ( $('#original_post_status').val() != 'publish' ) {225 } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) { 226 226 var publishOn = postL10n.publishOn; 227 227 $('#publish').val( postL10n.publish );
Note: See TracChangeset
for help on using the changeset viewer.