mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-03-31 10:23:35 +08:00
[oform] Add event to handle undo/redo
This commit is contained in:
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user