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 :)

CommentFileSizeAuthor
revision_reminder.zip2.32 KBBarisW

Comments

mdupont’s picture

Hi,

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!

mdupont’s picture

Status: Active » Fixed

In the end I'll rely on Drupal's behaviors and logic rather than JQuery, but thanks for your issue. Marking it as fixed.

BarisW’s picture

Just 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.