Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/audionerd/jquery-informant

[UPDATE: Indie Labs ended up doing their own port to jQuery, and it's better. I'm leaving this up for historical reason only] Warn users when they try to leave a form with unsaved changes. Ported from Indie Lab's "Informant".
https://github.com/audionerd/jquery-informant

Last synced: about 1 month ago
JSON representation

[UPDATE: Indie Labs ended up doing their own port to jQuery, and it's better. I'm leaving this up for historical reason only] Warn users when they try to leave a form with unsaved changes. Ported from Indie Lab's "Informant".

Awesome Lists containing this project

README

        

jquery.informant
================

A jQuery port of [Indie Lab's Informant for Prototype.js](http://github.com/ihearithurts/informant/)

Bonus features in the jQuery plugin version:

* easily include/exclude forms based on selector, e.g.:

> `$('form:not([class~=uninformed])').informant();`

* easily adjust the alert message, e.g.:

> `$('form').informant({ message: "O RLY?" }); `

THE CAVEAT SLIDE
----------------
* It was a quick hack.
* Never tested in IE. Tested only in Firefox and Safari for Mac.
* Briefly tested with multiple forms, but not thoroughly.
* Never used in production