misc: don't use javascript list handling for block widgets (#46856)

This commit is contained in:
Frédéric Péters 2020-09-21 20:19:57 +02:00
parent be79d944a0
commit e522d58dac
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ function prepare_widget_list_elements() {
row = $(row).find('tr:last');
}
if ($(row).is('.BlockSubWidget')) {
/* don't apply on block widgets as they need to handle
* maximum number items and the "repeated data" bug is too
* annoying.
*/
return true;
}
if ($(row).find('[name$=add_element], [data-dynamic-display-value]').length > 0) {
/* this has complex widgets, don't use
* javascript in that case */