aboutsummaryrefslogtreecommitdiff
path: root/contexts
diff options
context:
space:
mode:
authorGravatar Trevor Elliott <trevor@galois.com>2013-05-17 16:25:37 -0700
committerGravatar Trevor Elliott <trevor@galois.com>2013-05-17 16:25:37 -0700
commitaea3590db268284d637f409b720d9de1964a69c9 (patch)
treef19bf2ca0df4db344f3199b049ac57a783df5054 /contexts
parent0af23b65b5f6738930a22ed2976bfbc9879a0141 (diff)
Fix the section buttons in the options page
Diffstat (limited to 'contexts')
-rw-r--r--contexts/data/fiveui/options.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/contexts/data/fiveui/options.js b/contexts/data/fiveui/options.js
index 2c4b11c..5c80156 100644
--- a/contexts/data/fiveui/options.js
+++ b/contexts/data/fiveui/options.js
@@ -477,11 +477,8 @@ fiveui.options.init = function(port) {
var selectSection = function(el) {
var cont = el.parent();
- // hide parent sections
- cont.find('section').removeClass('selected').hide();
-
- // hide child sections
- el.find('section').hide();
+ // hide all sections
+ cont.find('>section').removeClass('selected').hide();
// display this section
el.addClass('selected').show();
@@ -505,8 +502,8 @@ fiveui.options.init = function(port) {
// listen to click events on navigation elements
setClickHandler(jQuery('#url-defaults'), select('#tab-url-defaults'));
- setClickHandler(jQuery('#rule-sets'), select('#tab-rule-sets'));
- setClickHandler(jQuery('#basics'), select('#tab-basics'));
+ setClickHandler(jQuery('#rule-sets'), select('#tab-rule-sets'));
+ setClickHandler(jQuery('#basics'), select('#tab-basics'));
// select the url patterns tab by default
selectNav(jQuery('#url-defaults'));