From 1c1663cecbd70606086e5ed208301d53456e834d Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Tue, 25 Jun 2019 13:34:00 +0300 Subject: [PATCH] [SSE mobile] Fix checked filter when selected one cell --- .../mobile/app/controller/add/AddOther.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js index 9305280fec..f3e78efd05 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js @@ -69,6 +69,7 @@ define([ setApi: function (api) { var me = this; me.api = api; + me.api.asc_registerCallback('asc_onError', _.bind(me.onError, me)); // me.api.asc_registerCallback('asc_onInitEditorFonts', _.bind(onApiLoadFonts, me)); @@ -139,6 +140,12 @@ define([ this.api.asc_changeAutoFilter(tablename, Asc.c_oAscChangeFilterOptions.filter, checked); }, + onError: function(id, level, errData) { + if(id === Asc.c_oAscError.ID.AutoFilterDataRangeError) { + this.getView('AddOther').optionAutofilter(false); + } + }, + textEmptyImgUrl : 'You need to specify image URL.', txtNotUrl: 'This field should be a URL in the format \"http://www.example.com\"' }