Optimize autocorrect dialog

This commit is contained in:
Julia Radzhabova 2020-07-22 16:02:55 +03:00
parent 02bdec5a73
commit 644c6ba677

View file

@ -106,7 +106,7 @@ define([
// special
this.mathList = new Common.UI.ListView({
el: $window.find('#auto-correct-math-list'),
store: new Common.UI.DataViewStore(this.props),
store: new Common.UI.DataViewStore(this.props.slice(0, 11)),
simpleAddMode: true,
template: _.template(['<div class="listview inner" style=""></div>'].join('')),
itemTemplate: _.template([
@ -180,6 +180,10 @@ define([
_.delay(function(){
$('input', me.inputReplace.cmpEl).select().focus();
},100);
_.delay(function(){
me.mathList.store.reset(me.props);
},100);
},
onBtnClick: function(event) {