[oform] Add event to handle undo/redo

This commit is contained in:
KirillovIlya
2023-01-19 19:59:29 +05:00
parent 72139c5780
commit a908a16e95

View File

@ -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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////