# HG changeset patch # User Matti Hamalainen # Date 1448035443 -7200 # Node ID 8a50535a4ff1ad63a057725d4b873fd77514d264 # Parent 4e5fa876ebeef9e90a4f54062104410900092e21 Use stylesheet for admin interface active/inactive tab differentiation instead of hardcoding. diff -r 4e5fa876ebee -r 8a50535a4ff1 admin.js --- 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