simsalabim/sisyphus — pull request #15 by jbarciauskas (2011-12-20 22:12:21+00:00)
Title: Add onBeforeRestore handler

Example usage:

jQuery('#mailing_edit').sisyphus(
{
onBeforeRestore: function() { return confirm("Would you like to restore the data saved previously for this form?"); },
});

It's only called if there is any data in localStorage to restore (thereby avoiding nagging the user unnecessarily)