SAAS-290: Hosted SaaS widgets + javascript code generation
-fix code box not automatically expanding on page refresh
This commit is contained in:
parent
3086bde17e
commit
b1985e2bdf
1 changed files with 6 additions and 3 deletions
|
@ -82,8 +82,9 @@ function setMsAuthenticationFieldsReadonly(ele) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCollapsibleWidgetJsCode() {
|
function setCollapsibleWidgetJsCode() {
|
||||||
$('#thirdPartyApi-element input').click(function() {
|
var x = function() {
|
||||||
if ($(this).first().attr("value") == '1') {
|
var val = $('input:radio[name=thirdPartyApi]:checked').val();
|
||||||
|
if (val == "1") {
|
||||||
//show js textarea
|
//show js textarea
|
||||||
$('#widgetCode-label').show("fast");
|
$('#widgetCode-label').show("fast");
|
||||||
$('#widgetCode-element').show("fast");
|
$('#widgetCode-element').show("fast");
|
||||||
|
@ -92,7 +93,9 @@ function setCollapsibleWidgetJsCode() {
|
||||||
$('#widgetCode-label').hide("fast");
|
$('#widgetCode-label').hide("fast");
|
||||||
$('#widgetCode-element').hide("fast");
|
$('#widgetCode-element').hide("fast");
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
x();
|
||||||
|
$('#thirdPartyApi-element input').click(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWidgetHelpDescription() {
|
function createWidgetHelpDescription() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue