junyi 806bb862c2 Auto-fill current time for postdate field on new active page
The postdate datetime field was left blank on the "new" active
creation page because orbit_form_helper.rb intentionally clears
:new_record fields regardless of the model's :default value.

Add inline JS (mirroring the pattern used in announcement-test)
to fill act[postdate] with the current date/time only when the
URL path ends in "new", so existing records are not overwritten
on edit.
2026-07-30 09:57:41 +00:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00
2021-08-10 13:33:51 +08:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00
2021-08-09 18:03:32 +08:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00
2014-11-10 10:24:07 +08:00

= Active

This project rocks and uses MIT-LICENSE.
S
Description
No description provided
Readme
106 KiB
0 Stars 1 Watchers 0 Forks
Languages
HTML 61.5%
Ruby 36.2%
SCSS 1%
CSS 0.6%
JavaScript 0.5%
Other 0.2%