[SSE mobile] Fix onReplace

This commit is contained in:
Julia Svinareva 2019-06-13 10:58:23 +03:00
parent 67c4f08637
commit 0c02e3de0f

View file

@ -89,6 +89,7 @@ define([
setApi: function(api) { setApi: function(api) {
this.api = api; this.api = api;
this.api.asc_registerCallback('asc_onRenameCellTextEnd', _.bind(this.onReplaceNext, this));
}, },
setMode: function (mode) { setMode: function (mode) {
@ -262,9 +263,10 @@ define([
onReplace: function (btn) { onReplace: function (btn) {
var me = this; var me = this;
me.onQueryReplace(me.searchBar.query, me.replaceBar.query ? me.replaceBar.query : ""); me.onQueryReplace(me.searchBar.query, me.replaceBar.query ? me.replaceBar.query : "");
setTimeout(function () { },
me.onQuerySearch(me.searchBar.query, 'next');
}, 20); onReplaceNext: function() {
this.onQuerySearch(this.searchBar.query, 'next');
}, },
onReplaceAll: function (e) { onReplaceAll: function (e) {