amoffat / bootstrap-application-wizard

MIT License
1.85k stars 388 forks source link

wizard.on('closed',callback) broken #93

Open joekuzma opened 10 years ago

joekuzma commented 10 years ago

For some reason, I can not attach to the wizard close event. I want the page to refresh when anyone closes the wizard...

var wizard = $("#campaignWizard").wizard();

wizard.on('closed', function () {
    alert("Closed Event Triggered");
    location.reload();
});

I never get the Alert, no does the page refresh.

I'm using a bootstrap app, and this is driving me nuts... Any ideas?

I am able to do events like:

wizard.on("submit", function (wizard) { .... });

that works fine... but the above one does not.

help...