From 00045867797adf8969476fe30e2c3973e249e6f8 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 23 Sep 2021 17:40:48 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04327=20-=20Fix=20JS=20"ReferenceError"?= =?UTF-8?q?=20in=20Application=20Upgrade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-core-update/view/ConfirmUpdate.ready.js.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datamodels/2.x/itop-core-update/view/ConfirmUpdate.ready.js.twig b/datamodels/2.x/itop-core-update/view/ConfirmUpdate.ready.js.twig index c5d679f91c..d6e3f140ab 100644 --- a/datamodels/2.x/itop-core-update/view/ConfirmUpdate.ready.js.twig +++ b/datamodels/2.x/itop-core-update/view/ConfirmUpdate.ready.js.twig @@ -1,11 +1,11 @@ {# @copyright Copyright (C) 2010-2021 Combodo SARL #} {# @license http://opensource.org/licenses/AGPL-3.0 #} -$("#do-update").on("click", function() { +$("#do-update").on("click", function(oEvent) { $(this).prop("disabled", true); $("#cancel-update").prop("disabled", true); $(this).parents('form').submit(); - e.preventDefault(); - e.stopPropagation(); + oEvent.preventDefault(); + oEvent.stopPropagation(); return false; });