From 59a8fb5867d17295050d057610cc4fe79e8ea30b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 21 Dec 2016 12:13:33 +0300 Subject: [PATCH] [DE] get_PropertyThemeColorSchemes -> asc_onSendThemeColorSchemes. --- apps/documenteditor/main/app/view/Toolbar.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 48e35c562..691640944 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1089,10 +1089,6 @@ define([ createDelayedElements: function() { if (this.api) { - var schemes = this.api.get_PropertyThemeColorSchemes(); - if (schemes) - this.onSendThemeColorSchemes(schemes); - this.mnuNonPrinting.items[0].setChecked(this.api.get_ShowParaMarks(), true); this.mnuNonPrinting.items[1].setChecked(this.api.get_ShowTableEmptyLine(), true); this.btnShowHidenChars.toggle(this.mnuNonPrinting.items[0].checked, true); @@ -1501,6 +1497,7 @@ define([ setApi: function(api) { this.api = api; /** coauthoring begin **/ + this.api.asc_registerCallback('asc_onSendThemeColorSchemes', _.bind(this.onSendThemeColorSchemes, this)); this.api.asc_registerCallback('asc_onCollaborativeChanges', _.bind(this.onCollaborativeChanges, this)); this.api.asc_registerCallback('asc_onAuthParticipantsChanged', _.bind(this.onApiUsersChanged, this)); this.api.asc_registerCallback('asc_onParticipantsChanged', _.bind(this.onApiUsersChanged, this));