misc: don't use javascript list handling for block widgets (#46856)
This commit is contained in:
parent
be79d944a0
commit
e522d58dac
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue