Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose whether or not to restore draft #144

Open
jfrac opened this issue Oct 20, 2016 · 1 comment
Open

Choose whether or not to restore draft #144

jfrac opened this issue Oct 20, 2016 · 1 comment

Comments

@jfrac
Copy link

jfrac commented Oct 20, 2016

I need to restore previous version of form (the version that was before sisyphus save a draft).

I need to do something like this

$("#formId").sisyphus({ 
    onBeforeRestore: function() { 
        return this.hasDraft() && confirm("restore?");
    },  
});

but I don't know if that is possible.

Thanks in advance.

@kestutisv
Copy link

kestutisv commented Sep 21, 2017

I also have the same problem.
#55 as @larryzhao said I also plan to implement an undo button, because onBeforeRestore is not giving the functionality what is needed. Maybe it is broken what @simsalabim have done on v1.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants