forms: don't add new rows using javascript in case of complex widgets (#44348)

This commit is contained in:
Frédéric Péters 2020-06-23 08:26:54 +02:00
parent 36bce17ca3
commit 962a4bfe57
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ function prepare_widget_list_elements() {
row = $(row).find('tr:last');
}
if ($(row).find('input[name$=add_element]').length > 0) {
/* this has several levels of widget lists, don't use
if ($(row).find('[name$=add_element], [data-dynamic-display-value]').length > 0) {
/* this has complex widgets, don't use
* javascript in that case */
return true;
}