Commit 5a2db70b authored by Alexander.Trofimov's avatar Alexander.Trofimov

api.sync_ -> trigger

parent 1fbbfe0b
...@@ -11865,7 +11865,6 @@ ...@@ -11865,7 +11865,6 @@
} }
var t = this; var t = this;
var api = window["Asc"]["editor"];
var ar = this.model.selectionRange.getLast().clone(); var ar = this.model.selectionRange.getLast().clone();
var isChangeAutoFilterToTablePart = function (addFormatTableOptionsObj) { var isChangeAutoFilterToTablePart = function (addFormatTableOptionsObj) {
...@@ -11921,8 +11920,9 @@ ...@@ -11921,8 +11920,9 @@
History.Create_NewPoint(); History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
if(null !== styleName) if(null !== styleName) {
api.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation); t.handlers.trigger("slowOperation", true);
}
//add to model //add to model
t.model.autoFilters.addAutoFilter(styleName, ar, addFormatTableOptionsObj); t.model.autoFilters.addAutoFilter(styleName, ar, addFormatTableOptionsObj);
...@@ -11933,8 +11933,9 @@ ...@@ -11933,8 +11933,9 @@
} }
t._onUpdateFormatTable(filterRange, !!(styleName), true); t._onUpdateFormatTable(filterRange, !!(styleName), true);
if(null !== styleName) if(null !== styleName) {
api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation); t.handlers.trigger("slowOperation", false);
}
History.EndTransaction(); 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