[SSE mobile] Add R1C1 Reference Style
This commit is contained in:
parent
34950ab65c
commit
3dc3027773
|
@ -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();
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -430,6 +430,23 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-block">
|
||||
<ul>
|
||||
<li id="r1-c1-style">
|
||||
<div class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title"><%= scope.textR1C1Style %></div>
|
||||
<div class="item-after">
|
||||
<label class="label-switch">
|
||||
<input type="checkbox">
|
||||
<div class="checkbox"></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -343,7 +343,8 @@ define([
|
|||
textRight: 'Right',
|
||||
textCollaboration: 'Collaboration',
|
||||
textFormulaLanguage: 'Formula Language',
|
||||
textExample: 'Example'
|
||||
textExample: 'Example',
|
||||
textR1C1Style: 'R1C1 Reference Style'
|
||||
}
|
||||
})(), SSE.Views.Settings || {}))
|
||||
});
|
|
@ -549,6 +549,7 @@
|
|||
"SSE.Views.Settings.textFormulaLanguage": "Formula Language",
|
||||
"SSE.Views.Settings.textExample": "Example",
|
||||
"SSE.Views.Settings.textCollaboration": "Collaboration",
|
||||
"SSE.Views.Settings.textR1C1Style": "R1C1 Reference Style",
|
||||
"SSE.Views.Toolbar.textBack": "Back",
|
||||
"SSE.Views.Collaboration.textCollaboration": "Collaboration",
|
||||
"SSE.Views.Collaboration.textСomments": "Сomments",
|
||||
|
|
Loading…
Reference in a new issue