From 43228abb72113d3d10c97d1c84955660477512ad Mon Sep 17 00:00:00 2001 From: cTn Date: Wed, 10 Apr 2013 15:57:36 +0200 Subject: [PATCH] polishing AUX ui --- css/style.css | 3 +++ tabs/auxiliary_configuration.js | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index f6bcaad76b..c0a9626392 100644 --- a/css/style.css +++ b/css/style.css @@ -412,6 +412,9 @@ a:hover { /* padding-left: 5px; */ text-align: center; } + .tab-auxiliary_configuration .boxes .on { + background-color: #0d8b13; + } .tab-auxiliary_configuration .boxes td input { position: absolute; diff --git a/tabs/auxiliary_configuration.js b/tabs/auxiliary_configuration.js index 0cf2886857..2930cae4c3 100644 --- a/tabs/auxiliary_configuration.js +++ b/tabs/auxiliary_configuration.js @@ -25,6 +25,12 @@ function tab_initialize_auxiliary_configuration() { // UI Hooks $('.tab-auxiliary_configuration .boxes input').change(function() { + if($(this).is(':checked')) { + $(this).parent().addClass('on'); + } else { + $(this).parent().removeClass('on'); + } + // if any of the fields changed, unlock update button $('a.update').addClass('active'); }); @@ -70,7 +76,7 @@ function tab_initialize_auxiliary_configuration() { function box_check(num, pos) { if (bit_check(num, pos)) { // 1 - return ''; + return ''; } else { // 0 return ''; }