diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 6bff89d52..553b20f43 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -558,6 +558,12 @@ define([ uiApp.closeModal('.document-menu.modal-in'); }); + //R1C1 reference style + value = Common.localStorage.getBool('sse-settings-r1c1'); + if(value !== undefined) { + this.api.asc_setR1C1Mode(value); + } + $(document).on('contextmenu', _.bind(me.onContextMenu, me)); Common.Gateway.documentReady(); }, diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index 3ef1c0f97..cd8b508c6 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -485,6 +485,18 @@ define([ var $pageLang = $('#language-formula'); $pageLang.find('.item-title').text(item.displayValue); $pageLang.find('.item-example').text(item.exampleValue); + + value = Common.localStorage.getBool('sse-settings-r1c1'); + var $r1c1Style = $('.page[data-page=settings-application-view] #r1-c1-style input'); + $r1c1Style.prop('checked',value); + $r1c1Style.single('change', _.bind(me.clickR1C1Style, me)); + }, + + clickR1C1Style: function(e) { + var $target = $(e.currentTarget), + checked = $target.prop('checked'); + Common.localStorage.setBool('sse-settings-r1c1', checked); + this.api.asc_setR1C1Mode(checked); }, unitMeasurementChange: function (e) { diff --git a/apps/spreadsheeteditor/mobile/app/template/Settings.template b/apps/spreadsheeteditor/mobile/app/template/Settings.template index 476d744cd..fbc5ee2ed 100644 --- a/apps/spreadsheeteditor/mobile/app/template/Settings.template +++ b/apps/spreadsheeteditor/mobile/app/template/Settings.template @@ -430,6 +430,23 @@ +