WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#2574 closed enhancement (fixed)

Improve "Edit Timestamp" Interface

Reported by: Viper007Bond Owned by: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0.2
Severity: normal Keywords: bg|has-patch bg|commit bg|tested
Cc:

Description

http://wordpress.org/support/topic/64869

Basically, if the checkbox is not ticked, then disable the inputs via JS.

I've found myself editing the timestamps before as well and forgetting to tick the box, so I think it'd be a good solution.

Attachments (1)

timestamp_checkbox.diff (1.8 KB) - added by abhay 7 years ago.
changes state of checkbox to checked upon change of fields.

Download all attachments as: .zip

Change History (6)

comment:1 skeltoac7 years ago

I'd rather have the checkbox checked automatically when I change any of the timestamp fields. onchange or onkeypress?

comment:2 abhay7 years ago

  • Keywords bg|has-patch added; bg|needs-patch removed

I think I prefer skeltoac's approach to this. Why disable the boxes when they just automatically cause the checkbox to check if you make a change?

Patch coming...

abhay7 years ago

changes state of checkbox to checked upon change of fields.

comment:3 westi7 years ago

  • Keywords bg|commit bg|tested added

Patch tested on Windows XP with both Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1) and IE (6.0.2900.2180.xpsp_sp2_gdr.050301-1519) works fine in both.

comment:4 davidhouse7 years ago

Works here as well. Go for it.

comment:5 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3648]) Check 'Edit Timestamp' checkbox whenever the timestamp fields are changed. Props abhay. fixes #2574

Note: See TracTickets for help on using tickets.