Skip to content

Commit

Permalink
Item12952: make sure showExpert sticks
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Sep 2, 2014
1 parent 2a8fd17 commit a2f5548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pub/System/ConfigurePlugin/configure.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ function _id_ify(id) {
$node.data('spec.entry', entry);
if (entry.EXPERT && entry.EXPERT == 1) {
$node.addClass('expert');
$node.addClass('hidden_expert');
if ($('#showExpert').attr('checked') !== 'checked')
$node.addClass('hidden_expert');
}
label = entry.LABEL;
if (typeof(entry.DISPLAY_IF) !== "undefined") {
Expand Down Expand Up @@ -829,7 +830,7 @@ function _id_ify(id) {
$('#auth_prompt').dialog("open");
});

$('#showExpert').button();
$('#showExpert').button({disabled: true});

$('#saveButton').button({disabled: !bs}).click(function() {
// SMELL: Save wizard v.s. changecfg in ConfigurePlugin
Expand Down Expand Up @@ -910,7 +911,7 @@ function _id_ify(id) {
$(this).addClass('hidden_expert');
});
}
}).removeAttr('disabled');
}).button('enable');

// Check all keys under root
RPC('check_current_value',
Expand Down

0 comments on commit a2f5548

Please sign in to comment.