diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index db5780a80..2b9716d2a 100644 --- a/apps/documenteditor/main/app/controller/Links.js +++ b/apps/documenteditor/main/app/controller/Links.js @@ -250,10 +250,7 @@ define([ }, onTableContentsUpdate: function(type){ - if (type == 'pages') - this.api.asc_updateTableOfContents(); - else - this.api.asc_updateaddTableOfContents(); + this.api.asc_UpdateTableOfContents(type == 'pages'); }, onNotesClick: function(type) {