1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-07 16:17:23 +01:00

HTML JS Cleanup

This commit is contained in:
David Duque
2020-04-14 09:52:01 +01:00
parent 109d8735c7
commit 14ee44e8e2
2 changed files with 28 additions and 8 deletions

View File

@@ -376,9 +376,10 @@
var current_panel = null;
var switch_back_to_panel = null;
function show_panel(panelid) {
if (panelid.getAttribute)
if (panelid.getAttribute) {
// we might be passed an HTMLElement <a>.
panelid = panelid.getAttribute('href').substring(1);
}
$('.admin_panel').hide();
$('#panel_' + panelid).show();