diff --git a/ietf/static/js/agenda_personalize.js b/ietf/static/js/agenda_personalize.js deleted file mode 100644 index edb2787f3c..0000000000 --- a/ietf/static/js/agenda_personalize.js +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright The IETF Trust 2021, All Rights Reserved - -/** - * Agenda personalization JS methods - * - * Requires agenda_timezone.js and timezone.js be included. - */ -'use strict'; - -/** - * Update the checkbox state to match the filter parameters - */ -function updateAgendaCheckboxes(filter_params) { - var selection_inputs = document.getElementsByName('selected-sessions'); - selection_inputs.forEach((inp) => { - const item_keywords = inp.dataset.filterKeywords.toLowerCase() - .split(','); - if ( - agenda_filter.keyword_match(item_keywords, filter_params.show) && - !agenda_filter.keyword_match(item_keywords, filter_params.hide) - ) { - inp.checked = true; - } else { - inp.checked = false; - } - }); -} - -window.handleFilterParamUpdate = function (filter_params) { - updateAgendaCheckboxes(filter_params); -}; - -window.handleTableClick = function (event) { - if (event.target.name === 'selected-sessions') { - // hide the tooltip after clicking on a checkbox - const jqElt = jQuery(event.target); - if (jqElt.tooltip) { - jqElt.tooltip('hide'); - } - } -}; \ No newline at end of file diff --git a/package.json b/package.json index cf29a8bb92..59873d5e4b 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,6 @@ "ietf/static/images/irtf-logo.svg", "ietf/static/js/agenda_filter.js", "ietf/static/js/agenda_materials.js", - "ietf/static/js/agenda_personalize.js", "ietf/static/js/complete-review.js", "ietf/static/js/create_timeslot.js", "ietf/static/js/create_timeslot.js",