sisyphus icon indicating copy to clipboard operation
sisyphus copied to clipboard

Choose whether or not to restore draft

Open jfrac opened this issue 8 years ago • 1 comments

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.

jfrac avatar Oct 20 '16 14:10 jfrac

I also have the same problem. https://github.com/simsalabim/sisyphus/issues/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?

kestutisv avatar Sep 21 '17 12:09 kestutisv