Fixed admin submenus not working correctly when more than one registered (solves #851)

The relevant code in `submenu.js` is now able to first close already active submenus when another one is being clicked. This solves issue #851.