Commit 508274cb authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Automatic retract checkbox js not working issue bug 1221020



it looks like the problem was the js code for the Automatic
retract text was being called after some js code for license info
and if license info was not enabled in config the js would fail
before reaching the right point.

Change-Id: I29483d16388aaa816b02089cfb603996699775de
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ec65367b
......@@ -238,8 +238,12 @@ forEach(getElementsByTagAndClassName('a', 'copytextboxnote', 'instconf'), functi
});
});
augment_tags_control('instconf_tags');
removeElementClass('instconf_license', 'hidden');
removeElementClass(getFirstElementByTagAndClassName('fieldset', null, 'instconf_license_advanced_fieldset'), 'hidden');
if (jQuery('#instconf_license').length) {
removeElementClass('instconf_license', 'hidden');
}
if (jQuery('#instconf_license_advanced_fieldset').length) {
removeElementClass(getFirstElementByTagAndClassName('fieldset', null, 'instconf_license_advanced_fieldset'), 'hidden');
}
EOF;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment