Closed (fixed)
Project:
Enforce revision log message
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2010 at 10:31 UTC
Updated:
27 Dec 2010 at 07:50 UTC
Hi all,
I just created a module that does exactly what your module does. With jQuery AND with form validation. I wanted to create a project of it, but then I stumbled upon this project. Attached is my module, you might to use parts of it to improve your module?
Please have a look :)
| Comment | File | Size | Author |
|---|---|---|---|
| revision_reminder.zip | 2.32 KB | BarisW |
Comments
Comment #1
mdupontHi,
Thanks for having looked for similar modules before creating your own :-)
This module uses the Forms and Node API for validation, and uses close to no JS, but I could for sure use some code, such as auto-focusing the log message textarea if an error is set. However I'm not sure that it won't interfere with other modules (what if they defined their own JS behaviors on form validation or error?). I'll have a look at it.
Thanks!
Comment #2
mdupontIn the end I'll rely on Drupal's behaviors and logic rather than JQuery, but thanks for your issue. Marking it as fixed.
Comment #3
BarisW commentedJust to clarify: my version does both. It uses Drupal logic to validate the form - AND checks with jQuery. jQuery gives the end-user a quicker response, without the need to submit the form first.