From a908a16e95456ed38bdb36b8ef01096eb04a805b Mon Sep 17 00:00:00 2001 From: KirillovIlya Date: Thu, 19 Jan 2023 19:59:29 +0500 Subject: [PATCH] [oform] Add event to handle undo/redo --- oform/OForm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oform/OForm.js b/oform/OForm.js index c827e19..fa31488 100644 --- a/oform/OForm.js +++ b/oform/OForm.js @@ -460,7 +460,7 @@ { if (!this.NeedUpdateRoles) return; - + this.NeedUpdateRoles = false; this.Roles = []; @@ -552,6 +552,11 @@ this.updateRoles(); this.checkRedraw(); }; + OForm.prototype.onUndoRedo = function() + { + this.updateRoles(); + this.checkRedraw(); + }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Private area ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////