[DE] Bug 36827

This commit is contained in:
Julia Radzhabova 2018-02-26 17:38:35 +03:00
parent b6ec334a7d
commit 9d1bf1199b
2 changed files with 8 additions and 1 deletions

View file

@ -354,6 +354,7 @@ define([
this.api.asc_registerCallback('asc_onColumnsProps', _.bind(this.onColumnsProps, this));
this.api.asc_registerCallback('asc_onSectionProps', _.bind(this.onSectionProps, this));
this.api.asc_registerCallback('asc_onContextMenu', _.bind(this.onContextMenu, this));
this.api.asc_registerCallback('asc_onShowParaMarks', _.bind(this.onShowParaMarks, this));
},
onChangeCompactView: function(view, compact) {
@ -611,6 +612,12 @@ define([
}
},
onShowParaMarks: function(v) {
this.toolbar.mnuNonPrinting.items[0].setChecked(v, true);
this.toolbar.btnShowHidenChars.toggle(v, true);
Common.localStorage.setItem("de-show-hiddenchars", v);
},
onApiFocusObject: function(selectedObjects) {
if (!this.editMode) return;

View file

@ -1516,7 +1516,7 @@ define([
this.btnDecLeftOffset.updateHint(this.tipDecPrLeft + Common.Utils.String.platformKey('Ctrl+Shift+M'));
this.btnIncLeftOffset.updateHint(this.tipIncPrLeft + Common.Utils.String.platformKey('Ctrl+M'));
this.btnLineSpace.updateHint(this.tipLineSpace);
this.btnShowHidenChars.updateHint(this.tipShowHiddenChars);
this.btnShowHidenChars.updateHint(this.tipShowHiddenChars + Common.Utils.String.platformKey('Ctrl+*'));
this.btnMarkers.updateHint(this.tipMarkers);
this.btnNumbers.updateHint(this.tipNumbers);
this.btnMultilevels.updateHint(this.tipMultilevels);