diff --git a/ietf/secr/static/js/session_form.js b/ietf/secr/static/js/session_form.js index 6f28f16db4..0e7277b137 100644 --- a/ietf/secr/static/js/session_form.js +++ b/ietf/secr/static/js/session_form.js @@ -25,4 +25,4 @@ } window.addEventListener('load', initialize); -})(); \ No newline at end of file +})(); diff --git a/ietf/secr/static/js/sessions.js b/ietf/secr/static/js/sessions.js index a2770e6262..702e119307 100644 --- a/ietf/secr/static/js/sessions.js +++ b/ietf/secr/static/js/sessions.js @@ -1,4 +1,5 @@ // Copyright The IETF Trust 2015-2021, All Rights Reserved +import $ from 'jquery'; /* global alert */ var ietf_sessions; // public interface @@ -156,4 +157,4 @@ var ietf_sessions; // public interface delete_last_joint_with_groups: delete_last_joint_with_groups, delete_wg_constraint_clicked: delete_wg_constraint_clicked } -})(); \ No newline at end of file +})(); diff --git a/ietf/secr/static/js/utils.js b/ietf/secr/static/js/utils.js index c1380b8c84..a686d92223 100644 --- a/ietf/secr/static/js/utils.js +++ b/ietf/secr/static/js/utils.js @@ -3,6 +3,8 @@ // set X-CSRFToken AJAX request header // from https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax +import $ from 'jquery'; + function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { @@ -250,4 +252,4 @@ $(document).ready(function() { init_proceedings_upload(); } -}); \ No newline at end of file +}); diff --git a/ietf/static/js/agenda_filter.js b/ietf/static/js/agenda_filter.js index e16145d404..bac5834e0d 100644 --- a/ietf/static/js/agenda_filter.js +++ b/ietf/static/js/agenda_filter.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; window.agenda_filter; // public interface window.agenda_filter_for_testing; // methods to be accessed for automated testing diff --git a/ietf/static/js/agenda_materials.js b/ietf/static/js/agenda_materials.js index 9fea88f79e..cec101875c 100644 --- a/ietf/static/js/agenda_materials.js +++ b/ietf/static/js/agenda_materials.js @@ -1,5 +1,6 @@ // Copyright The IETF Trust 2021, All Rights Reserved +import $ from 'jquery'; /* Javascript support for the materials modal rendered by session_agenda_include.html @@ -81,4 +82,4 @@ var agenda_materials; // public interface retrieve_session_modal($(this).find(".session-materials")); }); }) -})(); \ No newline at end of file +})(); diff --git a/ietf/static/js/complete-review.js b/ietf/static/js/complete-review.js index a359dac237..941613b1bb 100644 --- a/ietf/static/js/complete-review.js +++ b/ietf/static/js/complete-review.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var form = $("form.complete-review"); diff --git a/ietf/static/js/create_timeslot.js b/ietf/static/js/create_timeslot.js index 7d0cbd271e..c0391f0cfb 100644 --- a/ietf/static/js/create_timeslot.js +++ b/ietf/static/js/create_timeslot.js @@ -1,4 +1,5 @@ // Copyright The IETF Trust 2021, All Rights Reserved +import $ from 'jquery'; /* global URLSearchParams */ (function() { 'use strict'; @@ -40,4 +41,4 @@ } window.addEventListener('load', initialize); -})(); \ No newline at end of file +})(); diff --git a/ietf/static/js/d3.js b/ietf/static/js/d3.js index c6c1ee408b..e0159bdf3d 100644 --- a/ietf/static/js/d3.js +++ b/ietf/static/js/d3.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import * as d3 from "d3"; global.d3 = d3; \ No newline at end of file diff --git a/ietf/static/js/datepicker.js b/ietf/static/js/datepicker.js index 43d80acb5f..2eb1d52605 100644 --- a/ietf/static/js/datepicker.js +++ b/ietf/static/js/datepicker.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { Datepicker } from 'vanillajs-datepicker'; diff --git a/ietf/static/js/doc-search.js b/ietf/static/js/doc-search.js index 58347ed508..f24a1329c5 100644 --- a/ietf/static/js/doc-search.js +++ b/ietf/static/js/doc-search.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { // search form diff --git a/ietf/static/js/document_html.js b/ietf/static/js/document_html.js index 6e8861739a..17ebb21e92 100644 --- a/ietf/static/js/document_html.js +++ b/ietf/static/js/document_html.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { Tooltip as Tooltip, // Button as Button, diff --git a/ietf/static/js/document_relations.js b/ietf/static/js/document_relations.js index 07a85d0da5..03332f5b73 100644 --- a/ietf/static/js/document_relations.js +++ b/ietf/static/js/document_relations.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; const style = getComputedStyle(document.body); const font_size = parseFloat(style.fontSize); const line_height = font_size + 2; diff --git a/ietf/static/js/document_timeline.js b/ietf/static/js/document_timeline.js index d8532c3623..bba9c5965a 100644 --- a/ietf/static/js/document_timeline.js +++ b/ietf/static/js/document_timeline.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; "use strict"; var data; diff --git a/ietf/static/js/draft-submit.js b/ietf/static/js/draft-submit.js index 38ac7eb263..f6dd6dadb2 100644 --- a/ietf/static/js/draft-submit.js +++ b/ietf/static/js/draft-submit.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(function () { // fill in submitter info when an author button is clicked $("form.idsubmit button.author") diff --git a/ietf/static/js/edit-meeting-schedule.js b/ietf/static/js/edit-meeting-schedule.js index 3f0afe0841..ee4b31d1e0 100644 --- a/ietf/static/js/edit-meeting-schedule.js +++ b/ietf/static/js/edit-meeting-schedule.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(function () { 'use strict'; diff --git a/ietf/static/js/edit-meeting-timeslots-and-misc-sessions.js b/ietf/static/js/edit-meeting-timeslots-and-misc-sessions.js index d566d6f724..2977188376 100644 --- a/ietf/static/js/edit-meeting-timeslots-and-misc-sessions.js +++ b/ietf/static/js/edit-meeting-timeslots-and-misc-sessions.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; jQuery(document) .ready(function () { function reportServerError(xhr, textStatus, error) { diff --git a/ietf/static/js/edit-milestones.js b/ietf/static/js/edit-milestones.js index 2b64900d6c..ccb2e98eb6 100644 --- a/ietf/static/js/edit-milestones.js +++ b/ietf/static/js/edit-milestones.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var idCounter = -1; diff --git a/ietf/static/js/edit_action_holders.js b/ietf/static/js/edit_action_holders.js index 84fceba538..540422e498 100644 --- a/ietf/static/js/edit_action_holders.js +++ b/ietf/static/js/edit_action_holders.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; local_js = function () { let select2_elem = $('#id_action_holders'); let role_ids = select2_elem.data('role-ids'); diff --git a/ietf/static/js/edit_authors.js b/ietf/static/js/edit_authors.js index e22a1442b6..17ec093e08 100644 --- a/ietf/static/js/edit_authors.js +++ b/ietf/static/js/edit_authors.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; local_js = function () { const sortable_list_id = 'authors-list'; // id of the container element for Sortable const prefix = 'author'; // formset prefix - must match the prefix in the edit_authors() view diff --git a/ietf/static/js/fullcalendar.js b/ietf/static/js/fullcalendar.js index dfdad730e9..62f84fdec9 100644 --- a/ietf/static/js/fullcalendar.js +++ b/ietf/static/js/fullcalendar.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { Calendar } from '@fullcalendar/core'; import dayGridPlugin from '@fullcalendar/daygrid'; import iCalendarPlugin from '@fullcalendar/icalendar'; diff --git a/ietf/static/js/highcharts.js b/ietf/static/js/highcharts.js index 268f96e50f..cccbbe153e 100644 --- a/ietf/static/js/highcharts.js +++ b/ietf/static/js/highcharts.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import Highcharts from "highcharts"; import Highcharts_Exporting from "highcharts/modules/exporting"; diff --git a/ietf/static/js/highstock.js b/ietf/static/js/highstock.js index 15ddb5ef9c..2afb11404d 100644 --- a/ietf/static/js/highstock.js +++ b/ietf/static/js/highstock.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import Highcharts from "highcharts/highstock"; import Highcharts_Exporting from "highcharts/modules/exporting"; diff --git a/ietf/static/js/ietf.js b/ietf/static/js/ietf.js index 215d80553c..4291f360da 100644 --- a/ietf/static/js/ietf.js +++ b/ietf/static/js/ietf.js @@ -15,6 +15,7 @@ import "bootstrap/js/dist/tab"; import "bootstrap/js/dist/tooltip"; import jquery from "jquery"; +import $ from 'jquery'; window.$ = window.jQuery = jquery; if (!process.env.BUILD_DEPLOY) { diff --git a/ietf/static/js/ipr-edit.js b/ietf/static/js/ipr-edit.js index 9af5b03591..15aa80497b 100644 --- a/ietf/static/js/ipr-edit.js +++ b/ietf/static/js/ipr-edit.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var form = $(".ipr-form"); diff --git a/ietf/static/js/ipr-search.js b/ietf/static/js/ipr-search.js index 19f1a994a8..fd7d6faaf1 100644 --- a/ietf/static/js/ipr-search.js +++ b/ietf/static/js/ipr-search.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { // hack the "All States" check box diff --git a/ietf/static/js/js-cookie.js b/ietf/static/js/js-cookie.js index a9ffdf4811..c95e5bf576 100644 --- a/ietf/static/js/js-cookie.js +++ b/ietf/static/js/js-cookie.js @@ -1 +1,2 @@ +import $ from 'jquery'; import "js-cookie"; \ No newline at end of file diff --git a/ietf/static/js/liaisons.js b/ietf/static/js/liaisons.js index e7a76660c9..44c2599d88 100644 --- a/ietf/static/js/liaisons.js +++ b/ietf/static/js/liaisons.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; var attachmentWidget = { button: null, config: {}, diff --git a/ietf/static/js/list.js b/ietf/static/js/list.js index d7e9dc944b..5fb00472a3 100644 --- a/ietf/static/js/list.js +++ b/ietf/static/js/list.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { default as List } from "list.js"; diff --git a/ietf/static/js/listjs-search.js b/ietf/static/js/listjs-search.js index 61a253375f..ad2b934ff3 100644 --- a/ietf/static/js/listjs-search.js +++ b/ietf/static/js/listjs-search.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; module.exports = function (list) { var item, text, columns, searchString, customSearch diff --git a/ietf/static/js/login.js b/ietf/static/js/login.js index 770d091bf1..cbd8d5e569 100644 --- a/ietf/static/js/login.js +++ b/ietf/static/js/login.js @@ -1,6 +1,7 @@ /** * Disable Submit Button on Form Submit */ +import $ from 'jquery'; function onLoginSubmit (ev) { const submitBtn = document.querySelector('#dt-login-form button[type=submit]') if (submitBtn) { diff --git a/ietf/static/js/manage-community-list.js b/ietf/static/js/manage-community-list.js index 34cca4861b..297add143c 100644 --- a/ietf/static/js/manage-community-list.js +++ b/ietf/static/js/manage-community-list.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { $("[name=rule_type]") diff --git a/ietf/static/js/manage-review-requests.js b/ietf/static/js/manage-review-requests.js index 2947823108..032c033c6e 100644 --- a/ietf/static/js/manage-review-requests.js +++ b/ietf/static/js/manage-review-requests.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; /* global $ */ $(function () { 'use strict' diff --git a/ietf/static/js/meeting-interim-request.js b/ietf/static/js/meeting-interim-request.js index b7f7e3d997..e2dfa1e969 100644 --- a/ietf/static/js/meeting-interim-request.js +++ b/ietf/static/js/meeting-interim-request.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; const interimRequest = (function() { 'use strict'; return { diff --git a/ietf/static/js/moment.js b/ietf/static/js/moment.js index b74bbd3830..1a82725a7b 100644 --- a/ietf/static/js/moment.js +++ b/ietf/static/js/moment.js @@ -1,5 +1,6 @@ /* Add the moment object to the global scope - needed until inline scripts using * Moment.js are eliminated. When that happens, can import moment in the js files * that need it. */ +import $ from 'jquery'; import moment from "moment-timezone/builds/moment-timezone-with-data-10-year-range"; window.moment = moment; diff --git a/ietf/static/js/nav.js b/ietf/static/js/nav.js index dcb5409602..f3fbc3382b 100644 --- a/ietf/static/js/nav.js +++ b/ietf/static/js/nav.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import debounce from "lodash/debounce"; function make_nav() { diff --git a/ietf/static/js/password_strength.js b/ietf/static/js/password_strength.js index 4df5c14439..014b3775d5 100644 --- a/ietf/static/js/password_strength.js +++ b/ietf/static/js/password_strength.js @@ -1,6 +1,7 @@ // Taken from django-password-strength, with changes to use the bower-managed zxcvbn.js The // bower-managed zxcvbn.js is kept up-to-date to a larger extent than the copy packaged with // the django-password-strength component. +import $ from 'jquery'; (function ($, window, document, undefined) { window.djangoPasswordStrength = { config: { diff --git a/ietf/static/js/session_details_form.js b/ietf/static/js/session_details_form.js index 04b11875a7..2f4ed042b3 100644 --- a/ietf/static/js/session_details_form.js +++ b/ietf/static/js/session_details_form.js @@ -2,6 +2,7 @@ * * JS support for the SessionDetailsForm * */ +import $ from 'jquery'; (function () { 'use strict'; diff --git a/ietf/static/js/sortable.js b/ietf/static/js/sortable.js index 3a21c358de..642b80ffb5 100644 --- a/ietf/static/js/sortable.js +++ b/ietf/static/js/sortable.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { Sortable } from "sortablejs"; window.Sortable = Sortable; \ No newline at end of file diff --git a/ietf/static/js/stats.js b/ietf/static/js/stats.js index 931e9ebf82..769e96fae9 100644 --- a/ietf/static/js/stats.js +++ b/ietf/static/js/stats.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document).ready(function () { if (window.chartConf) { window.chartConf.credits = { diff --git a/ietf/static/js/status-change-edit-relations.js b/ietf/static/js/status-change-edit-relations.js index 53547eec5e..5bcf528055 100644 --- a/ietf/static/js/status-change-edit-relations.js +++ b/ietf/static/js/status-change-edit-relations.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var form = $(".new-relation-row") diff --git a/ietf/static/js/theme.js b/ietf/static/js/theme.js index d10a472569..3d6cbe60a1 100644 --- a/ietf/static/js/theme.js +++ b/ietf/static/js/theme.js @@ -7,6 +7,7 @@ * https://github.com/twbs/bootstrap/blob/main/site/static/docs/5.3/assets/js/color-modes.js */ +import $ from 'jquery'; (() => { 'use strict' diff --git a/ietf/static/js/timeslot_edit.js b/ietf/static/js/timeslot_edit.js index 568e37e39a..daa0069cc2 100644 --- a/ietf/static/js/timeslot_edit.js +++ b/ietf/static/js/timeslot_edit.js @@ -1,4 +1,5 @@ // create a namespace for local JS +import $ from 'jquery'; timeslotEdit = (function () { let deleteModal; let timeslotTableBody = document.querySelector('#timeslot-table tbody'); @@ -254,4 +255,4 @@ timeslotEdit = (function () { return { handleDeleteButtonClick: handleDeleteButtonClick, }; -})(); \ No newline at end of file +})(); diff --git a/ietf/static/js/timezone.js b/ietf/static/js/timezone.js index c2e0b286ae..f729babfa2 100644 --- a/ietf/static/js/timezone.js +++ b/ietf/static/js/timezone.js @@ -8,6 +8,7 @@ names. Time zone can be changed via the select input or by calling the use() method with the name of a time zone (or 'local' to guess the user's local timezone). */ +import $ from 'jquery'; (function () { 'use strict'; @@ -78,4 +79,4 @@ set_tz_change_callback: function (cb) { timezone_change_callback = cb; }, use: use_timezone }; -})(); \ No newline at end of file +})(); diff --git a/ietf/static/js/upcoming.js b/ietf/static/js/upcoming.js index 9ab5821c04..85566e0abb 100644 --- a/ietf/static/js/upcoming.js +++ b/ietf/static/js/upcoming.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; var filtered_event_list = []; // currently visible list var display_events = []; // filtered events, processed for calendar display var event_calendar; // handle on the calendar object diff --git a/ietf/static/js/upload-material.js b/ietf/static/js/upload-material.js index fb9f505875..5810cf7da2 100644 --- a/ietf/static/js/upload-material.js +++ b/ietf/static/js/upload-material.js @@ -1,4 +1,5 @@ // Copyright The IETF Trust 2021, All Rights Reserved +import $ from 'jquery'; ( function () { 'use strict'; @@ -59,4 +60,4 @@ initialize(); } -)(); \ No newline at end of file +)(); diff --git a/ietf/static/js/upload_bofreq.js b/ietf/static/js/upload_bofreq.js index b2d8fd64eb..df21b003f1 100644 --- a/ietf/static/js/upload_bofreq.js +++ b/ietf/static/js/upload_bofreq.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var form = $("form.upload-content"); diff --git a/ietf/static/js/upload_statement.js b/ietf/static/js/upload_statement.js index 7e8a4e8643..d915382ea5 100644 --- a/ietf/static/js/upload_statement.js +++ b/ietf/static/js/upload_statement.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; $(document) .ready(function () { var form = $("form.upload-content"); diff --git a/ietf/static/js/zxcvbn.js b/ietf/static/js/zxcvbn.js index 6d7d4a8bc9..43fdd2911c 100644 --- a/ietf/static/js/zxcvbn.js +++ b/ietf/static/js/zxcvbn.js @@ -1 +1,2 @@ +import $ from 'jquery'; window.zxcvbn = require('zxcvbn'); \ No newline at end of file