Commit f230b2c8 authored by GoshaZotov's avatar GoshaZotov

startAction/endAction if add new format table

parent 9022ee67
......@@ -11995,6 +11995,7 @@
}
var t = this;
var api = window["Asc"]["editor"];
var ar = this.model.selectionRange.getLast().clone();
var isChangeAutoFilterToTablePart = function (addFormatTableOptionsObj) {
......@@ -12050,6 +12051,10 @@
History.Create_NewPoint();
History.StartTransaction();
if(null !== styleName)
api.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation);
//add to model
t.model.autoFilters.addAutoFilter(styleName, ar, addFormatTableOptionsObj);
//updates
......@@ -12058,6 +12063,9 @@
}
t._onUpdateFormatTable(filterRange, !!(styleName), true);
if(null !== styleName)
api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation);
History.EndTransaction();
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment