SAAS-290: Hosted SaaS widgets + javascript code generation

-fix code box not automatically expanding on page refresh
This commit is contained in:
Martin Konecny 2012-12-04 17:42:28 -05:00
parent 3086bde17e
commit b1985e2bdf

View file

@ -82,8 +82,9 @@ function setMsAuthenticationFieldsReadonly(ele) {
}
function setCollapsibleWidgetJsCode() {
$('#thirdPartyApi-element input').click(function() {
if ($(this).first().attr("value") == '1') {
var x = function() {
var val = $('input:radio[name=thirdPartyApi]:checked').val();
if (val == "1") {
//show js textarea
$('#widgetCode-label').show("fast");
$('#widgetCode-element').show("fast");
@ -92,7 +93,9 @@ function setCollapsibleWidgetJsCode() {
$('#widgetCode-label').hide("fast");
$('#widgetCode-element').hide("fast");
}
});
}
x();
$('#thirdPartyApi-element input').click(x);
}
function createWidgetHelpDescription() {