From 3b9167e7079a0dac513643619645379f8ed861e2 Mon Sep 17 00:00:00 2001 From: Babu Vincent Date: Fri, 15 Jul 2016 17:20:20 +0530 Subject: [PATCH] add new calendar support to outlook --- chrome/content/exchangeSettingsOverlay.js | 18 ++++++++++++++++-- chrome/content/exchangeSettingsOverlay.xul | 14 ++++++++++++-- .../de/exchangeSettingsOverlay.dtd | 4 ++++ .../en-US/exchangeSettingsOverlay.dtd | 5 +++++ .../fr-FR/exchangeSettingsOverlay.dtd | 4 ++++ .../ja-JP/exchangeSettingsOverlay.dtd | 4 ++++ .../nl/exchangeSettingsOverlay.dtd | 4 ++++ .../ru/exchangeSettingsOverlay.dtd | 4 ++++ .../sv/exchangeSettingsOverlay.dtd | 4 ++++ .../tr/exchangeSettingsOverlay.dtd | 4 ++++ 10 files changed, 61 insertions(+), 4 deletions(-) diff --git a/chrome/content/exchangeSettingsOverlay.js b/chrome/content/exchangeSettingsOverlay.js index 92e2f1ba..b14f94fc 100644 --- a/chrome/content/exchangeSettingsOverlay.js +++ b/chrome/content/exchangeSettingsOverlay.js @@ -93,7 +93,7 @@ exchSettingsOverlay.prototype = { }, exchWebServicesCheckRequired: function _exchWebServicesCheckRequired() { - + if (!this.gexchWebServicesDetailsChecked) { this._document.getElementById("exchWebService_folderbaserow").hidden = true; this._document.getElementById("exchWebService_folderpathrow").hidden = true; @@ -107,7 +107,21 @@ exchSettingsOverlay.prototype = { else { this._document.getElementById("exchWebService_detailschecked").setAttribute("required", false); } - + + if (this._document.getElementById("exchWebService_ectype").selectedIndex == 1 ){ + this._document.getElementById("exchWebService_server").value = "https://outlook.office365.com/EWS/Exchange.asmx"; + this._document.getElementById("exchWebService_autodiscover").checked = false; + this._document.getElementById("exchWebService_autodiscover").disabled = true; + + this.exchWebServicesgServer = this._document.getElementById("exchWebService_server").value; + this.exchWebServicesgUser = this._document.getElementById("exchWebService_mailbox").value; + this._document.getElementById("exchWebService_windowsuser").value = this.exchWebServicesgUser; + } + else { + this._document.getElementById("exchWebService_server").value = ""; + this._document.getElementById("exchWebService_autodiscover").disabled = false; + } + if (this._document.getElementById("exchWebService_autodiscover").checked) { this.exchWebServicesChangeFolderbaseMenuItemAvailability(false); diff --git a/chrome/content/exchangeSettingsOverlay.xul b/chrome/content/exchangeSettingsOverlay.xul index a54d3bb4..ea535576 100644 --- a/chrome/content/exchangeSettingsOverlay.xul +++ b/chrome/content/exchangeSettingsOverlay.xul @@ -46,8 +46,17 @@