From 9757cb175b4a8b370f0853df8bc9ba39f2303a5c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 12 Oct 2017 14:20:32 +0300 Subject: [PATCH] Use api.setInputParams method for SogouPinyin. --- apps/documenteditor/main/app/controller/LeftMenu.js | 2 +- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/presentationeditor/main/app/controller/LeftMenu.js | 2 +- apps/presentationeditor/main/app/controller/Main.js | 2 +- apps/spreadsheeteditor/main/app/controller/LeftMenu.js | 2 +- apps/spreadsheeteditor/main/app/controller/Main.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 091e0a127..0d4153db8 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -301,7 +301,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("de-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + this.api.setInputParams({"SogouPinyin" : value}); } /** coauthoring begin **/ diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 6e96e290f..32eecc697 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -802,7 +802,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("de-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + me.api.setInputParams({"SogouPinyin" : value}); } /** coauthoring begin **/ diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index 7c8a0e8c8..7e884ea79 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -242,7 +242,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("pe-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + this.api.setInputParams({"SogouPinyin" : value}); } /** coauthoring begin **/ diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 6e2d1d421..01389d58e 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -600,7 +600,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("pe-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + me.api.setInputParams({"SogouPinyin" : value}); } /** coauthoring begin **/ diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 5d2d000d9..eaa552fd0 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -266,7 +266,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("sse-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + this.api.setInputParams({"SogouPinyin" : value}); } /** coauthoring begin **/ diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 72c3d3531..611b3f7a6 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -151,7 +151,7 @@ define([ if (Common.Utils.isChrome) { value = Common.localStorage.getBool("sse-settings-inputsogou"); - window["AscInputMethod"]["SogouPinyin"] = value; + this.api.setInputParams({"SogouPinyin" : value}); } this.api.asc_registerCallback('asc_onOpenDocumentProgress', _.bind(this.onOpenDocument, this));