";
} else if (col.type === "select") {
-
- console.log(col);
- console.log(setting);
- console.log(categoryValue);
-
html += "
"
- html += "
";
-
+ html += "";
} else {
html +=
"
1 ? "." + key : "");
-
+
if (isCheckbox) {
input.attr("name", newName)
} else {
- if(isDropdown) {
+ if(isDropdown) {
$(element).children("select").attr("data-hidden-input", newName);
}
input.attr("name", newName);
@@ -1467,7 +1441,6 @@ function addTableRow(row) {
} else {
// because the name of the setting in question requires the key
// setup a hook to change the HTML name of the element whenever the key changes
-
var colName = $(element).attr("name");
keyInput.on('change', function(){
input.attr("name", setting_name + "." + $(this).val() + "." + colName);
@@ -1478,6 +1451,12 @@ function addTableRow(row) {
input.focus();
focusChanged = true;
}
+
+ // if we are adding a dropdown, we should go ahead and make its select
+ // element is visible
+ if(isDropdown) {
+ $(element).children("select").attr("style", "");
+ }
if (isCheckbox) {
$(input).find("input").attr("data-changed", "true");