diff --git a/apps/documenteditor/main/app/view/TableOfContentsSettings.js b/apps/documenteditor/main/app/view/TableOfContentsSettings.js index 171311f72..6ee1a5678 100644 --- a/apps/documenteditor/main/app/view/TableOfContentsSettings.js +++ b/apps/documenteditor/main/app/view/TableOfContentsSettings.js @@ -159,7 +159,7 @@ define([ properties.put_RightAlignTab(this.chAlign.getValue() == 'checked'); properties.put_TabLeader(this.cmbLeader.getValue()); } - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -177,7 +177,7 @@ define([ if (checked) { properties.put_TabLeader(this.cmbLeader.getValue()); } - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -199,7 +199,7 @@ define([ if (this.api && !this._noApply) { var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); properties.put_TabLeader(record.value); - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -212,7 +212,7 @@ define([ if (this.api && !this._noApply) { var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); properties.put_Hyperlink(field.getValue()=='checked'); - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -269,7 +269,7 @@ define([ if (this.api && !this._noApply) { var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); properties.put_StylesType(record.value); - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -293,7 +293,7 @@ define([ var properties = (this._originalProps) ? this._originalProps : new Asc.CTableOfContentsPr(); properties.clear_Styles(); properties.put_OutlineRange(this.startLevel, this.endLevel); - // this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); + this.api.SetDrawImagePlaceContents('tableofcontents-img', properties); } }, this)); @@ -333,6 +333,11 @@ define([ Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments); }, + close: function() { + this.api.SetDrawImagePlaceContents(null); + Common.Views.AdvancedSettingsWindow.prototype.close.apply(this); + }, + _setDefaults: function (props) { this._noApply = true; @@ -459,7 +464,7 @@ define([ } } - // this.api.SetDrawImagePlaceContents('tableofcontents-img', this._originalProps); + this.api.SetDrawImagePlaceContents('tableofcontents-img', this._originalProps); this._noApply = false; },