Aerolab / midnight.js

Switch your nav's design on the fly
http://aerolab.github.io/midnight.js/
Other
3.67k stars 380 forks source link

Not firing check on AJAX page soft-refresh load. #64

Closed wearelfb closed 6 years ago

wearelfb commented 6 years ago

I've got midnight working great, but it's not firing .midnight() again after an AJAX page load, even when calling the function again on complete. The elements that are being applied midnight aren't reloading on page change.

RobertoGonzalez commented 6 years ago

Hi @wearelfb! Try running $('#yourHeader').midnight('refresh'). It's an undocumented feature for that specific use case.

wearelfb commented 6 years ago

Sorry, forgot to respond to this -- Worked great. Thanks!