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 #} {# @copyright Copyright (C) 2010-2021 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #} {# @license http://opensource.org/licenses/AGPL-3.0 #}
$("#do-update").on("click", function() { $("#do-update").on("click", function(oEvent) {
$(this).prop("disabled", true); $(this).prop("disabled", true);
$("#cancel-update").prop("disabled", true); $("#cancel-update").prop("disabled", true);
$(this).parents('form').submit(); $(this).parents('form').submit();
e.preventDefault(); oEvent.preventDefault();
e.stopPropagation(); oEvent.stopPropagation();
return false; return false;
}); });