Skip to content

Commit

Permalink
CDPT-2273: TypeError: l() is not a function (#302)
Browse files Browse the repository at this point in the history
- Remove legacy code referring to a slider component that's no longer in use
  • Loading branch information
EmilyHazlehurst authored Jan 17, 2025
1 parent 03cc1d5 commit 97533a6
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions public/app/themes/justice/src/js/legacy/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,6 @@ jQuery(document).ready(function () {
* The following code is legacy and is not yet fully understood.
*/

//tab-group
jQuery('.tab-group .tabs').each(function () {
//get tabs for this group
jQuery(this).children('li').each(function (i) {
jQuery(this).click(function (e, auto) {
if (typeof auto == "undefined") jQuery(document).stopTime('highlight');
e.preventDefault();
var thisTabGrp = jQuery(this).closest('.tab-group');
//toggle selected tab
jQuery(thisTabGrp).children('.tabs').children('li.selected').removeClass();
jQuery(this).addClass('selected');
//toggle tab contents
jQuery(thisTabGrp).children('.tab-content').children().each(function (j) {
i == j ? jQuery(this).fadeIn(250, 'swing') : jQuery(this).fadeOut(250, 'swing');
});
});
});
});

//top nav sub
jQuery('.menu-top li[class!="more"] .flyout-container div[class^="content"]').each(function () {
var cols = 1;
Expand Down Expand Up @@ -57,15 +38,6 @@ jQuery(document).ready(function () {
}
});

//highlight auto-cycle
if (jQuery('#highlight').length > 0) {
setInterval(function() {
var index = jQuery('#highlight .tabs li.selected').index();
var size = jQuery('#highlight .tabs li').length;
index < size - 1 ? jQuery('#highlight .tabs li:eq(' + (index + 1) + ')').trigger('click', ['auto']) : jQuery('#highlight .tabs li:eq(0)').trigger('click', ['auto']);
}, 5000);
}

//split lv2-listing
if (jQuery('div.lv2-listing').length > 0) {
var ul = '<ul>';
Expand Down

0 comments on commit 97533a6

Please sign in to comment.