N°4327 - Fix JS "ReferenceError" in Application Upgrade

This commit is contained in:
Molkobain
2021-09-23 17:40:48 +02:00
parent 7ae4fe06ed
commit 0004586779

View File

@@ -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;
});