Skip to content

Commit

Permalink
feat(js): Upgrade to jQuery3
Browse files Browse the repository at this point in the history
  • Loading branch information
torotil committed Oct 24, 2024
1 parent c756652 commit 116417a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ae_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Drupal.behaviors.ae_admin.attach = function(context) {
$('a.toggler:not(.ae_admin-processed)', context).each(function() {
var id = $(this).attr('href').split('#')[1];
// Target exists, add click handler.
if ($('#' + id).size() > 0) {
if ($('#' + id).length > 0) {
$(this).click(function() {
toggleable = $('#' + id);
toggleable.toggle();
Expand Down

0 comments on commit 116417a

Please sign in to comment.