Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDPT-2273: TypeError: l() is not a function #302

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading