Lines 71-78
function clone_entry(node) {
Link Here
|
71 |
} |
71 |
} |
72 |
|
72 |
|
73 |
function update_category_code(category_code) { |
73 |
function update_category_code(category_code) { |
74 |
if ($(category_code).is("select")) { |
74 |
//NOTE: Sometimes the category_code arg is a string and sometimes it's an object |
75 |
category_code = $("#categorycode_entry").find("option:selected").val(); |
75 |
const data_type = typeof category_code; |
|
|
76 |
if (data_type === "object") { |
77 |
if ($(category_code).is("select")) { |
78 |
category_code = $("#categorycode_entry") |
79 |
.find("option:selected") |
80 |
.val(); |
81 |
} |
76 |
} |
82 |
} |
77 |
var mytables = $(".attributes_table"); |
83 |
var mytables = $(".attributes_table"); |
78 |
$(mytables).find("li").hide(); |
84 |
$(mytables).find("li").hide(); |
79 |
- |
|
|