in Drupal

Thanks to the nudging from irakli and drewish, I finally made the node protection javascript I blogged about here into a module called Node Edit Protection. As it says on the module page, it is a very simple JavaScript based protection that will alert a user if they are navigating away from a modified Node Edit form without saving. It uses a standard JavaScript confirm dialog that allows the user to either continue what they were doing, or cancel the move allowing them the opportunity to save. It marks the form as dirty by using the blur event of the node fields. Enjoy!

Sign up for the Phase2 newsletter for exclusive content and news.

Related Posts