From a88b4ad06b38aa973446161f815c79930e62807b Mon Sep 17 00:00:00 2001 From: Timothee Date: Fri, 20 Sep 2024 11:31:42 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05079=20-=20Fix=20misleading=20"leave=20c?= =?UTF-8?q?onfirmation"=20alert=20after=20closing=20some=20custom=20forms?= =?UTF-8?q?=20in=20portal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itop-portal-base/portal/public/js/portal_form_handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js b/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js index 1b1843cf67..5c16e862da 100644 --- a/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js +++ b/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js @@ -67,8 +67,8 @@ $(function() // revert other modifications here _destroy: function() { - this.element - .removeClass('portal_form_handler'); + this._unregisterBlockers(); + this.element.removeClass('portal_form_handler'); }, // _setOptions is called with a hash of all options that are changing // always refresh when changing options