backoffice: fix detection of "add element" button (#44686)
This commit is contained in:
parent
0df7b0dcba
commit
aca20bf41a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue