creativetimofficial / material-bootstrap-wizard

Material Bootstrap Wizard - Bootstrap wizard based on Material Design
http://demos.creative-tim.com/material-bootstrap-wizard/wizard-book-room.html
MIT License
81 stars 79 forks source link

modal trick needed #35

Open karaspr opened 5 years ago

karaspr commented 5 years ago

I'm looking for a way to force the page to refresh when closing modal pop-up. I found several solutions but none of them works (or I cant' implement it into my code probably because of syntax problems)...

dragosct commented 5 years ago

Hi, @karaspr! Thank you for using our products. You must put the reload function in the hidden event of the modal. Please see here how to use the modal hidden event.

Regards, Dragos

karaspr commented 5 years ago

thank you for the answer

please confirm: I should put $('#myModal').on('hidden.bs.modal', function (e) { location.reload(); }) . <-- is it correct?

but WHERE should I put it? Can I have a hint?

dragosct commented 5 years ago

Hi! Yes, it is correct and you can put it in the js file in assets/js folder.

Regards, Dragos