[DE mobile] Add Hidden Table Borders in application settings
This commit is contained in:
parent
c5a9f9809a
commit
d014d96198
|
@ -539,6 +539,9 @@ define([
|
|||
value = Common.localStorage.getItem("de-mobile-no-characters");
|
||||
me.api.put_ShowParaMarks((value!==null) ? eval(value) : false);
|
||||
|
||||
value = Common.localStorage.getItem("de-mobile-hidden-borders");
|
||||
me.api.put_ShowTableEmptyLine((value!==null) ? eval(value) : true)
|
||||
|
||||
/** coauthoring begin **/
|
||||
if (me.appOptions.isEdit && me.appOptions.canLicense && !me.appOptions.isOffline && me.appOptions.canCoAuthoring) {
|
||||
// Force ON fast co-authoring mode
|
||||
|
|
|
@ -230,6 +230,8 @@ define([
|
|||
$('#settings-spellcheck input:checkbox').single('change', _.bind(me.onSpellcheck, me));
|
||||
$('#settings-no-characters input:checkbox').attr('checked', (Common.localStorage.getItem("de-mobile-no-characters") == 'true') ? true : false);
|
||||
$('#settings-no-characters input:checkbox').single('change', _.bind(me.onNoCharacters, me));
|
||||
$('#settings-hidden-borders input:checkbox').attr('checked', (Common.localStorage.getItem("de-mobile-hidden-borders") == 'true') ? true : false);
|
||||
$('#settings-hidden-borders input:checkbox').single('change', _.bind(me.onShowTableEmptyLine, me));
|
||||
$('#settings-orthography').single('click', _.bind(me.onOrthographyCheck, me));
|
||||
Common.Utils.addScrollIfNeed('.page[data-page=settings-advanced-view]', '.page[data-page=settings-advanced-view] .page-content');
|
||||
} else if ('#color-schemes-view' == pageId) {
|
||||
|
@ -258,6 +260,14 @@ define([
|
|||
me.api.put_ShowParaMarks(state);
|
||||
},
|
||||
|
||||
onShowTableEmptyLine: function(e) {
|
||||
var me = this,
|
||||
$checkbox = $(e.currentTarget),
|
||||
state = $checkbox.is(':checked');
|
||||
Common.localStorage.setItem("de-mobile-hidden-borders", state);
|
||||
me.api.put_ShowTableEmptyLine(state);
|
||||
},
|
||||
|
||||
initPageMargin: function() {
|
||||
var me = this;
|
||||
_metricText = Common.Utils.Metric.getMetricName(Common.Utils.Metric.getCurrentMetric());
|
||||
|
|
|
@ -629,6 +629,17 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="settings-hidden-borders" class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title"><%= scope.textHiddenTableBorders %></div>
|
||||
<div class="item-after">
|
||||
<label class="label-switch">
|
||||
<input type="checkbox">
|
||||
<div class="checkbox"></div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -285,7 +285,8 @@ define([
|
|||
textPoint: 'Point',
|
||||
textInch: 'Inch',
|
||||
textColorSchemes: 'Color Schemes',
|
||||
textNoCharacters: 'Nonprinting Characters'
|
||||
textNoCharacters: 'Nonprinting Characters',
|
||||
textHiddenTableBorders: 'Hidden Table Borders'
|
||||
|
||||
}
|
||||
})(), DE.Views.Settings || {}))
|
||||
|
|
|
@ -426,5 +426,6 @@
|
|||
"DE.Views.Settings.textInch": "Inch",
|
||||
"DE.Views.Settings.textColorSchemes": "Color Schemes",
|
||||
"DE.Views.Settings.textNoCharacters": "Nonprinting Characters",
|
||||
"DE.Views.Settings.textHiddenTableBorders": "Hidden Table Borders",
|
||||
"DE.Views.Toolbar.textBack": "Back"
|
||||
}
|
Loading…
Reference in a new issue