From f0bf279175c736698f8993a103ad9262a18048d3 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 5 Feb 2018 13:41:49 +0300 Subject: [PATCH] [DE] Fix Bug 36775, Fix Bug 36771. --- .../main/app/view/TableOfContentsSettings.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/view/TableOfContentsSettings.js b/apps/documenteditor/main/app/view/TableOfContentsSettings.js index ca0ab8aca..171311f72 100644 --- a/apps/documenteditor/main/app/view/TableOfContentsSettings.js +++ b/apps/documenteditor/main/app/view/TableOfContentsSettings.js @@ -358,6 +358,12 @@ define([ this.chLinks.setValue((value !== null && value !== undefined) ? value : 'indeterminate', true); value = props.get_StylesType(); this.cmbStyles.setValue((value!==null) ? value : Asc.c_oAscTOCStylesType.Current); + value = props.get_ShowPageNumbers(); + this.chPages.setValue((value !== null && value !== undefined) ? value : 'indeterminate'); + if (this.chPages.getValue() == 'checked') { + value = props.get_RightAlignTab(); + this.chAlign.setValue((value !== null && value !== undefined) ? value : 'indeterminate'); + } var start = props.get_OutlineStart(), end = props.get_OutlineEnd(), @@ -446,11 +452,11 @@ define([ if (!props) { this._originalProps.put_OutlineRange(this.startLevel, this.endLevel); this._originalProps.put_Hyperlink(this.chLinks.getValue() == 'checked'); - } - this._originalProps.put_ShowPageNumbers(this.chPages.getValue() == 'checked'); - if (this.chPages.getValue() == 'checked') { - this._originalProps.put_RightAlignTab(this.chAlign.getValue() == 'checked'); - this._originalProps.put_TabLeader(this.cmbLeader.getValue()); + this._originalProps.put_ShowPageNumbers(this.chPages.getValue() == 'checked'); + if (this.chPages.getValue() == 'checked') { + this._originalProps.put_RightAlignTab(this.chAlign.getValue() == 'checked'); + this._originalProps.put_TabLeader(this.cmbLeader.getValue()); + } } // this.api.SetDrawImagePlaceContents('tableofcontents-img', this._originalProps);