Mercurial > hg > fapweb
changeset 1047:8a50535a4ff1
Use stylesheet for admin interface active/inactive tab differentiation
instead of hardcoding.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Nov 2015 18:04:03 +0200 |
parents | 4e5fa876ebee |
children | 178ed843b6c2 |
files | admin.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/admin.js Fri Nov 20 17:26:21 2015 +0200 +++ b/admin.js Fri Nov 20 18:04:03 2015 +0200 @@ -60,7 +60,7 @@ if (tabContent && tabHead) { tabContent.style.display = (tab == id) ? "block" : "none"; - tabHead.style.borderTop = (tab == id) ? "4px solid white" : "none"; + tabHead.className = (tab == id) ? "active" : "inactive"; if (tab == id) { // Set active tab and refresh contents