MyBB Community Forums

Full Version: Prevent Reload on selection?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running an updated version of MetroStyle (paid version).

MyBB: 1.8.8


Problem: When users select between "Light" and "Dark" mode, the list/box/field/area they are in stays open and fixed:
http://prntscr.com/dciuxe
http://prntscr.com/dciv3a


This was "fixed" by editing this code:
<li><a href="#"  rel="light"><span></span>Light</a></li>
<li><a href="#"  rel="dark"><span></span>Dark</a></li>

To become this code:
<li><a href="#" class="reloadbutton" rel="light"><span></span>Light</a></li>
<li><a href="#" class="reloadbutton" rel="dark"><span></span>Dark</a></li>


My question:

Can I get RID of that class and make it where once they select an option, it closes automatically without reloading the entire page?