backoffice: fix detection of "add element" button (#44686)

This commit is contained in:
Frédéric Péters 2020-07-01 17:08:59 +02:00
parent 0df7b0dcba
commit aca20bf41a
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function displayPopup(event)
$(function() {
$('a[rel=popup], a[data-popup]').click(displayPopup);
$(document).on('wcs:dialog-loaded', function(e, dialog) {
if ($(dialog).find('input[name$=add_element]').length) {
if ($(dialog).find('[name$=add_element]').length) {
prepare_widget_list_elements();
}
if (jQuery.fn.colourPicker !== undefined) {