Skip to content

Commit 28f503c

Browse files
authored
Fix detection of closest element
1 parent 23423af commit 28f503c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/public/jquery.ajax-reload-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
event.preventDefault();
1212

1313
$form = $(this);
14-
$element = $(this).closest('[class^="ce_"],[class^="mod_"]');
14+
$element = $(this).closest('*[class^="ce_"][data-ajax-reload-element],*[class^="mod_"][data-ajax-reload-element]');
1515
$element.addClass(options.reloadCssClass);
1616
$element.trigger('ajax-reload:submitted');
1717

0 commit comments

Comments
 (0)