simsalabim/sisyphus

Choose whether or not to restore draft

Opened this issue · 1 comments

jfrac commented

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.

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?