[PE] Fix Bug 35540.

This commit is contained in:
Julia Radzhabova 2017-08-08 13:28:13 +03:00
parent 1587ae9f2d
commit 5a4204b18a
2 changed files with 2 additions and 2 deletions

View file

@ -1562,7 +1562,7 @@ define([
this.api.asc_SetViewRulers(!checked);
}
Common.localStorage.setItem('pe-hidden-rulers', checked ? 1 : 0);
Common.localStorage.setBool('pe-hidden-rulers', checked);
Common.NotificationCenter.trigger('layout:changed', 'rulers');
Common.NotificationCenter.trigger('edit:complete', this.toolbar);

View file

@ -1391,7 +1391,7 @@ define([
});
this.mnuitemHideStatusBar.setChecked(Common.localStorage.getBool('pe-hidden-status'), true);
this.mnuitemHideRulers.setChecked(Common.localStorage.getItem("pe-hidden-rulers"), true);
this.mnuitemHideRulers.setChecked(Common.localStorage.getBool("pe-hidden-rulers"), true);
// // Enable none paragraph components
this.lockToolbar(PE.enumLock.disableOnStart, false, {array: this.slideOnlyControls.concat(this.shapeControls)});