From b97466cdfbcb5b02d4eaf38661c051d1a095838e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 30 Jun 2026 04:58:37 +0200 Subject: Unify jQuery: serve public site jQuery via asset pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove vendored jquery-1.3.2.min.js, jquery-ui-1.7.2.custom.min.js, and the unreferenced duplicate jquery.hotkeys.js from public/javascripts/. Public layout now loads jQuery via a small public_bundle.js manifest through the asset pipeline, same mechanism already used for the admin interface (admin_bundle.js). This brings the public site from jQuery 1.3.2 (2009) to the current jquery-rails-provided version (3.7.x). Shadowbox's jQuery adapter (shadowbox-jquery.js) only uses stable APIs (.css, .remove, .bind, .unbind, .append, .extend) unchanged across this version span. Verified by manual click-test: gallery image opens, displays, and dismisses correctly. public.js required no changes — all jQuery APIs used (.ready, .bind, .trigger, .length) are stable across versions. --- app/assets/javascripts/public_bundle.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 app/assets/javascripts/public_bundle.js (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/public_bundle.js b/app/assets/javascripts/public_bundle.js new file mode 100644 index 0000000..b66b4a3 --- /dev/null +++ b/app/assets/javascripts/public_bundle.js @@ -0,0 +1,2 @@ +//= require jquery +//= require_self -- cgit v1.3