mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 10:44:30 +01:00
26 lines
915 B
JavaScript
26 lines
915 B
JavaScript
var classes = ["lcform-col-1", "lcform-col-2"];
|
|
var j, lenj = classes.length;
|
|
for(j=0; j < lenj; j++){
|
|
var formSelector = classes[j];
|
|
var forms = document.getElementsByClassName(formSelector);
|
|
//console.log(formSelector);
|
|
//console.log(forms);
|
|
if (forms.length > 0){
|
|
forms[0].style.removeProperty("display");
|
|
var InputGroups = forms[0].getElementsByClassName("input-group-addon");
|
|
//console.log(InputGroups);
|
|
var i, len = InputGroups.length;
|
|
var longest = 0;
|
|
for(i=0; i < len; i++){
|
|
if (InputGroups[i].id !== "basic-addon-password2"){
|
|
longest = longest < InputGroups[i].clientWidth ? InputGroups[i].clientWidth : longest;
|
|
}
|
|
}
|
|
for(i=0; i < len; i++){
|
|
InputGroups[i].style.minWidth = (longest + 0) + "px";
|
|
}
|
|
//console.log(longest);
|
|
}
|
|
}
|
|
//console.log("end_re");
|