fix(js): remove dead testimonialSlider/flexslider call from scripts.js
After the flexslider asset removal, scripts.js still tried to call
$('.testimonialSlider').flexslider(...) which threw a TypeError in the
browser console on every page. The element does not exist in this
rebuild and never will — testimonials were a feature of the original
Grav theme that we are not porting. Hero carousel and employees
carousel are both Bootstrap-3, auto-initialized via data-ride.
No functional impact on the page (every initializer before this block
already ran), just a noisy console error.
This commit is contained in:
+3
-22
@@ -80,28 +80,9 @@ jQuery(function ($) {
|
||||
}());
|
||||
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// testimonialSlider
|
||||
// -------------------------------------------------------------
|
||||
(function () {
|
||||
|
||||
$('.testimonialSlider').flexslider({
|
||||
animation: "slide",
|
||||
controlNav: "thumbnails",
|
||||
directionNav: false
|
||||
})
|
||||
|
||||
// Navigation
|
||||
$('.prev').on('click', function(){
|
||||
$('.testimonialSlider').flexslider('prev')
|
||||
return false;
|
||||
})
|
||||
|
||||
$('.next').on('click', function(){
|
||||
$('.testimonialSlider').flexslider('next')
|
||||
return false;
|
||||
})
|
||||
}());
|
||||
// testimonialSlider block removed — used flexslider for a widget that
|
||||
// does not exist in this rebuild. Hero carousel and employees carousel
|
||||
// are both Bootstrap-3, initialized via data-ride="carousel".
|
||||
|
||||
}); // JQuery end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user