[Pkg-mozext-commits] [gcontactsync] 04/10: Issue #81: Account setup wizard ignores sync direction
David Prévot
taffit at moszumanska.debian.org
Fri Jun 19 16:29:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository gcontactsync.
commit 4b96764dcae96d6695e28461c14055bbec43087e
Author: Josh Geenen <joshgeenen at gmail.com>
Date: Sun Jun 7 21:39:19 2015 -0500
Issue #81: Account setup wizard ignores sync direction
---
src/content/AccountSetupWizard.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/content/AccountSetupWizard.js b/src/content/AccountSetupWizard.js
index 8cd867c..dc6e321 100644
--- a/src/content/AccountSetupWizard.js
+++ b/src/content/AccountSetupWizard.js
@@ -259,6 +259,7 @@ com.gContactSync.AccountSetupWizard = {
finish: function AccountSetupWizard_finish() {
var abName = document.getElementById("abName").label;
var group = document.getElementById("Groups").value;
+ var directionElem = document.getElementById("SyncDirection");
var syncGroups = String(group === "All"),
myContacts = String(group !== "All" && group !== "false");
// TODO combine with saveSelectedAccount
@@ -272,8 +273,8 @@ com.gContactSync.AccountSetupWizard = {
ab.savePref("syncGroups", syncGroups);
ab.savePref("myContacts", myContacts);
ab.savePref("myContactsName", group);
- ab.savePref("writeOnly", "false");
- ab.savePref("readOnly", "false");
+ ab.savePref("writeOnly", String(directionElem.value === "WriteOnly"));
+ ab.savePref("readOnly", String(directionElem.value === "ReadOnly"));
ab.setLastSyncDate(0);
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/gcontactsync.git
More information about the Pkg-mozext-commits
mailing list