- $('a.views-ajax-link', context).once('views-ajax').each(function () {
- const elementSettings = baseElementSettings;
- elementSettings.base = $(this).attr('id');
- elementSettings.element = this;
- // Set the URL to go to the anchor.
- if ($(this).attr('href')) {
- elementSettings.url = $(this).attr('href');
- }
- Drupal.ajax(elementSettings);
- });
+ $('a.views-ajax-link', context)
+ .once('views-ajax')
+ .each(function() {
+ const elementSettings = baseElementSettings;
+ elementSettings.base = $(this).attr('id');
+ elementSettings.element = this;
+ // Set the URL to go to the anchor.
+ if ($(this).attr('href')) {
+ elementSettings.url = $(this).attr('href');
+ }
+ Drupal.ajax(elementSettings);
+ });