From 0e58dae0b682cd2474e2a4b20bb1044c5dc1e8ea Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sun, 17 Nov 2019 16:15:54 +0100 Subject: [PATCH] Install jQuery migrate plugin and start hunting for bugs; one down --- scipost/static/scipost/table-row.js | 2 +- scipost/templates/scipost/bare_base.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scipost/static/scipost/table-row.js b/scipost/static/scipost/table-row.js index 3e4dfac55..5838cf44b 100644 --- a/scipost/static/scipost/table-row.js +++ b/scipost/static/scipost/table-row.js @@ -1,5 +1,5 @@ $(document).ready(function($) { - $(".table-row").click(function() { + $(".table-row").on("click", function() { window.document.location = $(this).data("href"); }); }); diff --git a/scipost/templates/scipost/bare_base.html b/scipost/templates/scipost/bare_base.html index 4b6f5ff81..ca203b0e3 100644 --- a/scipost/templates/scipost/bare_base.html +++ b/scipost/templates/scipost/bare_base.html @@ -9,7 +9,8 @@ <link href="https://fonts.googleapis.com/css?family=Merriweather+Sans:300,400,700" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="{% static 'scipost/SciPost.css' %}" /> <link rel="stylesheet" type="text/css" href="{% static 'fa/css/font-awesome.min.css' %}" /> - <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script> + <script src="https://code.jquery.com/jquery-migrate-3.1.0.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> {% render_bundle 'main' 'css' %} -- GitLab