Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-30592] Hide hidden formatted parameters right after th…
…e elements are created in the DOM
  • Loading branch information
kinow committed Dec 19, 2015
1 parent b2e85eb commit c603534
Showing 1 changed file with 7 additions and 8 deletions.
Expand Up @@ -70,7 +70,13 @@
}
// find the cascade parameter element
var parentDiv = jQuery('#${paramName}');

// if the parameter class has been set to hidden, then we hide it now
if (parentDiv.get(0).getAttribute('class') == 'hidden_uno_choice_parameter') {
var parentTbody = jQuery(parentDiv.get(0)).parents('tbody');
if (parentTbody && parentTbody.length > 0) {
jQuery(parentTbody.get(0)).attr('style', 'visibility:hidden;position:absolute;');
}
}
var parameterHtmlElement = null;
for(var i = 0; i < parentDiv.children().length; i++) {
var child = parentDiv.children()[i];
Expand Down Expand Up @@ -125,13 +131,6 @@
}
}

if (div && div.getAttribute('class') == 'hidden_uno_choice_parameter') {
var parentTbody = jQuery(div).parents('tbody');
if (parentTbody && parentTbody.length > 0) {
jQuery(parentTbody.get(0)).attr('style', 'visibility:hidden;position:absolute;');
}
}

new UnoChoice.ReferencedParameter(referencedParameters[i], parameterElement, dynamicParameter);
}

Expand Down

0 comments on commit c603534

Please sign in to comment.