Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

#241 Input window usability can be improved #256

Merged
merged 1 commit into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 24 additions & 14 deletions addressbook/content/exchangeContactSettings.xul
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,30 @@
ondialogaccept="return tmpExchangeContactSettings.onSave();"
onload="tmpExchangeContactSettings.onLoad();">
<script type="application/javascript"
src="chrome://exchangecontacts/content/exchangeContactSettings.js" />
<hbox>
<label value="&label.ecExchangeSettings.title;" />
<textbox id="exchWebService_contact_description" />
</hbox>
<hbox>
<label value="&exchangeWebService.preference.contacts.pollinterval;" />
<textbox id="exchangeWebService_preference_contacts_pollinterval"
preference="extensions.1st-setup.core.debuglevel"
increment="1"
min="1"
type="number" />
</hbox>
src="chrome://exchangecontacts/content/exchangeContactSettings.js"/>

<grid flex="1">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row align="center">
<label value="&label.ecExchangeSettings.title;"/>
<textbox id="exchWebService_contact_description"/>
</row>
<row align="center">
<label value="&exchangeWebService.preference.contacts.pollinterval;"/>
<textbox id="exchangeWebService_preference_contacts_pollinterval"
preference="extensions.1st-setup.core.debuglevel"
increment="1"
min="1"
type="number"/>
</row>
</rows>
</grid>
<checkbox label="&exchWebService.add.globaladdresslist.label;"
id="exchWebService-add-globaladdresslist" />
id="exchWebService-add-globaladdresslist"/>

<vbox id="exchWebService-exchange-settings"></vbox>
</dialog>
2 changes: 1 addition & 1 deletion addressbook/locale/en/exchangeContactSettings.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
<!ENTITY label.ecExchangeSettings.title "Name in list:">
<!ENTITY exchangeWebService.preference.contacts.pollinterval "Refresh interval in seconds:">

<!ENTITY exchWebService.add.globaladdresslist.label "Add global address list to search results.">
<!ENTITY exchWebService.add.globaladdresslist.label "Add global address list to search results">
2 changes: 0 additions & 2 deletions common/content/exchangeSettingsOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,8 @@ exchSettingsOverlay.prototype = {
}
else {
// We only have one url. Use it.
// selectedEWSUrl.value = ewsUrls.text();
selectedEWSUrl.value = ewsUrls[0].value;
}

}

if (!userCancel) {
Expand Down
6 changes: 3 additions & 3 deletions common/content/exchangeSettingsOverlay.xul
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
<textbox id="exchWebService_mailbox"
required="true"
oninput="tmpSettingsOverlay.exchWebServicesDoMailboxChanged(this);"
placeholder="[email protected]" />
placeholder="[email protected]"
flex="1" />
<label id="exchWebService_displayname"
value=""
flex="1" />
value="" />
</hbox>
</row>
<row align="center">
Expand Down
21 changes: 3 additions & 18 deletions common/content/oofSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* -- Exchange 2007/2010 Calendar and Tasks Provider.
* -- For Thunderbird with the Lightning add-on.
*
* This work is a combination of the Storage calendar, part of the default Lightning add-on, and
* This work is a combination of the Storage calendar, part of the default Lightning add-on, and
* the "Exchange Data Provider for Lightning" add-on currently, october 2011, maintained by Simon Schubert.
* Primarily made because the "Exchange Data Provider for Lightning" add-on is a continuation
* of old code and this one is build up from the ground. It still uses some parts from the
* Primarily made because the "Exchange Data Provider for Lightning" add-on is a continuation
* of old code and this one is build up from the ground. It still uses some parts from the
* "Exchange Data Provider for Lightning" project.
*
* Author: Michel Verbraak ([email protected])
Expand All @@ -37,21 +37,10 @@
var Cc = Components.classes;
var Ci = Components.interfaces;



ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
ChromeUtils.import("resource://exchangecommon/erGetUserOofSettings.js");
ChromeUtils.import("resource://exchangecommon/erSetUserOofSettings.js");

//ChromeUtils.import("resource://exchangecommon/ecFunctions.js");

//if (! exchWebService) var exchWebService = {};

/*if (! this.cal) {
ChromeUtils.import("resource://calendar/modules/calUtils.jsm", exchWebService);
}
*/

function exchOOFSettings(aDocument, aWindow) {
this._document = aDocument;
this._window = aWindow;
Expand All @@ -62,8 +51,6 @@ function exchOOFSettings(aDocument, aWindow) {

exchOOFSettings.prototype = {

//exchWebService.oofSettings = {

calPrefs: null,
intOofSettings: {},

Expand Down Expand Up @@ -200,10 +187,8 @@ exchOOFSettings.prototype = {
var externalReply = this.intOofSettings.externalReply;

internalReply = "<html>" + this.internalEditorElement.content + "</html>";

externalReply = "<html>" + this.externalEditorElement.content + "</html>";


var self = this;
var tmpObject = new erSetUserOofSettingsRequest({
user: this.globalFunctions.safeGetCharPref(this.calPrefs, "ecDomain", "null") + "\\" + this.globalFunctions.safeGetCharPref(this.calPrefs, "ecUser", "null"),
Expand Down
2 changes: 1 addition & 1 deletion common/locale/en/exchangeSettingsOverlay.dtd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!ENTITY ecautodiscover "Use Exchange's autodiscovery function.">
<!ENTITY ecautodiscover "Use Exchange autodiscovery">
<!ENTITY ecfolderbase.label "Folder base:">
<!ENTITY ecfolderpath.label "Path below folder base:">
<!ENTITY ecfolderidofshare.label "Share Folder ID:">
Expand Down