Issue #3306455: Initialize sliders only when settings are present

Fixes the JSON.parse error when no gallery settings are present. Builds on !1, reads settings per slider, and replaces the jQuery load shorthand with .on('load', ...).

Tested before the rebase on Drupal 11.4.8 with the compatibility patch from #3589446: edit/create forms, gallery navigation, and nine initializer checks passed. Checks have not been repeated after the rebase; Views AJAX and Drupal 9/10 remain untested.

Prepared and tested with AI assistance.

Edited by Ishfaq Ahmad

Merge request reports

Loading
Loading