Make WordPress Core

Changeset 22442

Timestamp:
11/07/2012 09:31:08 PM (12 years ago)
Author:
westi
Message:

Post UI: Provide visual feedback to the user if they try to set an invalid date for a post. Fixes #17180 props jkudish.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r22268 r22442  
    388388
    389389        function updateText() {
     390
     391
     392
     393
    390394            var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
    391395                optPublish = $('option[value="publish"]', postStatus), aa = $('#aa').val(),
     
    535539        });
    536540
     541
     542
     543
     544
     545
     546
     547
     548
     549
     550
    537551        $('#post-status-select').siblings('a.edit-post-status').click(function() {
    538552            if ($('#post-status-select').is(":hidden")) {
Note: See TracChangeset for help on using the changeset viewer.