diff --git a/apps/documenteditor/main/app/controller/PageThumbnails.js b/apps/documenteditor/main/app/controller/PageThumbnails.js index c167a9323..c526fd8a7 100644 --- a/apps/documenteditor/main/app/controller/PageThumbnails.js +++ b/apps/documenteditor/main/app/controller/PageThumbnails.js @@ -59,6 +59,7 @@ define([ 'show': _.bind(function () { if (this.firstShow) { this.api.asc_viewerThumbnailsResize(); + this.api.asc_setViewerThumbnailsUsePageRect(Common.localStorage.getBool("de-thumbnails-highlight", true)); this.firstShow = false; } }, this) @@ -104,7 +105,9 @@ define([ onHighlightVisiblePart: function(menu, item, e) { if (item.value === 'highlight') { - //console.log(item.isChecked()); + var checked = item.isChecked(); + this.api.asc_setViewerThumbnailsUsePageRect(checked); + Common.localStorage.setBool("de-thumbnails-highlight", checked); } }, diff --git a/apps/documenteditor/main/app/view/PageThumbnails.js b/apps/documenteditor/main/app/view/PageThumbnails.js index cb2afd980..9457e6562 100644 --- a/apps/documenteditor/main/app/view/PageThumbnails.js +++ b/apps/documenteditor/main/app/view/PageThumbnails.js @@ -110,7 +110,7 @@ define([ caption: this.textHighlightVisiblePart, checkable: true, value: 'highlight', - toggleGroup: 'menuThumbnails' + checked: Common.localStorage.getBool("de-thumbnails-highlight", true) } ] })