[Pkg-mozext-commits] [gcontactsync] 19/31: Issue #61 - Allow changing the edit contact notes field
David Prévot
taffit at moszumanska.debian.org
Sun Feb 22 21:34:36 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 14349375fa93dfb35f024b74cb3c7b5b6c246011
Author: Josh Geenen <joshgeenen at gmail.com>
Date: Tue Dec 23 09:52:37 2014 -0600
Issue #61 - Allow changing the edit contact notes field
---
src/content/CardDialogOverlay.js | 8 +++++++-
src/content/Preferences.js | 3 ++-
src/defaults/preferences/gContactSync.js | 2 ++
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/content/CardDialogOverlay.js b/src/content/CardDialogOverlay.js
index 2527e02..af99cfd 100644
--- a/src/content/CardDialogOverlay.js
+++ b/src/content/CardDialogOverlay.js
@@ -342,7 +342,13 @@ com.gContactSync.CardDialogOverlay = {
anniversaryElem._constrainValue = birthdayElem._constrainValue;
anniversaryElem._setFieldValue = birthdayElem._setFieldValue;
- // fix the width of the dialog
+ // Set the height of the Notes field
+ var notesElem = document.getElementById("Notes");
+ if (notesElem && com.gContactSync.Preferences.mSyncPrefs.notesHeight.value) {
+ notesElem.style.height = com.gContactSync.Preferences.mSyncPrefs.notesHeight.value;
+ }
+
+ // Update the size of the dialog
window.sizeToContent();
// override the check and set card values function
diff --git a/src/content/Preferences.js b/src/content/Preferences.js
index 86f60e8..dec2910 100644
--- a/src/content/Preferences.js
+++ b/src/content/Preferences.js
@@ -212,7 +212,8 @@ com.gContactSync.Preferences = {
httpRequestDelay: new com.gContactSync.Pref("httpRequestDelay", "int", 120),
numRelations: new com.gContactSync.Pref("numRelations", "int", 6),
numLogsInRotation: new com.gContactSync.Pref("numLogsInRotation", "int", 3),
- selectFirstCardAfterDrop: new com.gContactSync.Pref("selectFirstCardAfterDrop", "bool", true)
+ selectFirstCardAfterDrop: new com.gContactSync.Pref("selectFirstCardAfterDrop", "bool", true),
+ notesHeight: new com.gContactSync.Pref("notesHeight", "char", "")
},
/**
* Gets a preference given its branch, name, and type
diff --git a/src/defaults/preferences/gContactSync.js b/src/defaults/preferences/gContactSync.js
index 9cf6216..23d2a6c 100644
--- a/src/defaults/preferences/gContactSync.js
+++ b/src/defaults/preferences/gContactSync.js
@@ -97,6 +97,8 @@ pref("extensions.gContactSync.numLogsInRotation", 3);
// Select the first card after a drag and drop event.
// This works around a Thunderbird bug.
pref("extensions.gContactSync.selectFirstCardAfterDrop", true);
+// The style for the notes field in the edit contact dialog
+pref("extensions.gContactSync.notesHeight", "");
// extended properties to sync
pref("extensions.gContactSync.extended1", "Custom1");
pref("extensions.gContactSync.extended2", "Custom2");
--
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