aethelwulffe wrote on Thursday, December 17, 2015:
Trying this out in a form to prevent navigation away from an unsaved form:
Naturally, this prevents the submit button from doing it’s thing without a warning, and some of this may be better in the existing js class, or at least in a js include in the library. Any js gurus feel like passing me some hints as to how to improve this (the right way)? Even as-is, it will save lots of lost time and frustration on the part of our users that regularly screw up by referencing other stuff in middle of doing their note.