erp5_web_renderjs_ui: add onclick property on listbox rows links rendering
Showing
... | ... | @@ -92,6 +92,7 @@ |
element_data, | ||
sub_element, | ||
a_element, | ||
a_properties, | ||
sub_element_list, | ||
td_element_list, | ||
tr_element_list = []; | ||
... | ... | @@ -156,9 +157,13 @@ |
if (cell.editable || !cell.href) { | ||
sub_element_list.push(sub_element); | ||
} else { | ||
a_element = domsugar('a', { | ||
a_properties = { | ||
"href": cell.href | ||
}, [sub_element]); | ||
}; | ||
if (cell.onclick) { | ||
|
||
a_properties.onclick = cell.onclick; | ||
} | ||
a_element = domsugar('a', a_properties, [sub_element]); | ||
sub_element_list.push(a_element); | ||
} | ||
... | ... | @@ -995,6 +1000,9 @@ |
if (value.url_value.command) { | ||
url_value = line_link_list[counter + index]; | ||
index += 1; | ||
} else if (value.url_value.onclick) { | ||
url_value = false; | ||
value.onclick = value.url_value.onclick; | ||
} else { | ||
url_value = false; | ||
} | ||
... | ... |