Optimize autocorrect dialog
This commit is contained in:
parent
02bdec5a73
commit
644c6ba677
|
@ -106,7 +106,7 @@ define([
|
||||||
// special
|
// special
|
||||||
this.mathList = new Common.UI.ListView({
|
this.mathList = new Common.UI.ListView({
|
||||||
el: $window.find('#auto-correct-math-list'),
|
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,
|
simpleAddMode: true,
|
||||||
template: _.template(['<div class="listview inner" style=""></div>'].join('')),
|
template: _.template(['<div class="listview inner" style=""></div>'].join('')),
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
|
@ -180,6 +180,10 @@ define([
|
||||||
_.delay(function(){
|
_.delay(function(){
|
||||||
$('input', me.inputReplace.cmpEl).select().focus();
|
$('input', me.inputReplace.cmpEl).select().focus();
|
||||||
},100);
|
},100);
|
||||||
|
|
||||||
|
_.delay(function(){
|
||||||
|
me.mathList.store.reset(me.props);
|
||||||
|
},100);
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtnClick: function(event) {
|
onBtnClick: function(event) {
|
||||||
|
|
Loading…
Reference in a new issue