forms: don't add new rows using javascript in case of complex widgets (#44348)
This commit is contained in:
parent
36bce17ca3
commit
962a4bfe57
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue