From f33c3055bc2bdd41229d331031aa55bb8ce12617 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 5 Apr 2025 12:24:27 +0200 Subject: [PATCH] upgrade jquery 3.7 --- teleforma/static/teleforma/js/application.js | 6 +++--- teleforma/templates/teleforma/base.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/teleforma/static/teleforma/js/application.js b/teleforma/static/teleforma/js/application.js index 2e022b2e..e16e2d62 100644 --- a/teleforma/static/teleforma/js/application.js +++ b/teleforma/static/teleforma/js/application.js @@ -26,20 +26,20 @@ */ $(document).ready(function () { - if ($('.home').size()) { + if ($('.home').length) { $('.course').each(function () { var $course = $(this); var course_url = $course.find('.course_title a').attr('href'); $course.find('.course_content .listing tbody').each(function () { var $tbody = $(this); - if ($tbody.find('tr').size() >= 2) { + if ($tbody.find('tr').length >= 2) { $tbody.find('tr:not(:first)').remove(); $tbody.append('Voir la suite') } }); }) } - if ($('.tabs').size()) + if ($('.tabs').length) $('.tabs').tabs(); }); diff --git a/teleforma/templates/teleforma/base.html b/teleforma/templates/teleforma/base.html index 711bb077..9d619482 100644 --- a/teleforma/templates/teleforma/base.html +++ b/teleforma/templates/teleforma/base.html @@ -35,9 +35,9 @@ {% block javascript %} - - - + + + -- 2.39.5