chore: Remove unused agenda-personalize.js (#5387)
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
This commit is contained in:
parent
99cd5a39f4
commit
7c890ea69e
|
@ -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');
|
||||
}
|
||||
}
|
||||
};
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue