From 69c18377cf014115eb9e7eced1586200ae97748c Mon Sep 17 00:00:00 2001 From: tricopterY Date: Sat, 14 Mar 2015 13:21:41 +1100 Subject: [PATCH] Update configuration.js --- tabs/configuration.js | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/tabs/configuration.js b/tabs/configuration.js index 8eb3a531..49321447 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -90,14 +90,41 @@ TABS.configuration.initialize = function (callback, scrollPosition) { for (var i = 0; i < features.length; i++) { var row_e; - if (features[i].mode == 'group') { - row_e = $('' + features[i].description + ''); + if (features[i].mode === 'group') { + row_e = $('' + + features[i].description + + ''); radioGroups.push(features[i].group); } else { - row_e = $('' + features[i].description + ''); - var feature_e = row_e.find('input.feature'); - feature_e.data('bit', features[i].bit); + var feature_e = row_e.find('input.feature'); + row_e = $('' + + features[i].description + + ''); + feature_e.prop('checked', bit_check(BF_CONFIG.features, features[i].bit)); + feature_e.data('bit', features[i].bit); } features_e.each(function () {