diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index 194360771..bb62c9d71 100644 --- a/apps/documenteditor/main/app/controller/Links.js +++ b/apps/documenteditor/main/app/controller/Links.js @@ -204,17 +204,18 @@ define([ onTableContents: function(type){ switch (type) { case 0: - this.api.asc_addTableOfContents(); break; + this.api.asc_AddTableOfContents(); break; case 1: - this.api.asc_addTableOfContents(); break; + this.api.asc_AddTableOfContents(); break; case 'settings': var props, me = this; var win = new DE.Views.TableOfContentsSettings({ api: this.api, - props: props, + props: this.api.asc_GetTableOfContentsPr(), handler: function(dlg, result) { if (result == 'ok') { props = dlg.getSettings(); + me.api.asc_SetTableOfContentsPr(props); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); @@ -223,6 +224,7 @@ define([ win.show(); break; case 'remove': + this.api.asc_RemoveTableOfContents(); break; } }, diff --git a/apps/documenteditor/main/app/view/TableOfContentsSettings.js b/apps/documenteditor/main/app/view/TableOfContentsSettings.js index e3684197c..a8ee22cdb 100644 --- a/apps/documenteditor/main/app/view/TableOfContentsSettings.js +++ b/apps/documenteditor/main/app/view/TableOfContentsSettings.js @@ -49,7 +49,7 @@ define([ DE.Views.TableOfContentsSettings = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 500, - height: 430 + height: 455 }, initialize : function(options) { @@ -106,8 +106,8 @@ define([ '', '', '', - '