[Pkg-mozext-commits] [nostalgy] 44/252: *** empty log message ***

David Prévot taffit at moszumanska.debian.org
Tue Jun 14 15:24:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit 54a9875d397a7a0df9e9017aa0f9aca8877dcf70
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Mon Nov 6 18:01:24 2006 +0000

    *** empty log message ***
---
 CHANGES                     |  1 +
 chrome.manifest             |  1 +
 chrome.manifest.pack        |  1 +
 content/composer.js         | 38 ++++++++++++++++++++++++++++++++++++++
 content/composerOverlay.xul |  7 +++++++
 files                       |  2 ++
 6 files changed, 50 insertions(+)

diff --git a/CHANGES b/CHANGES
index cd5a3c3..2bc1e3c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
 Since 0.1.9
   - make shell-completion optional (default behavior for Tab is to cycle 
     through sugestions)
+  - allow to switch between "To:" and "Cc:" fields efficiently
   - bug fix: rules with non-empty folder condition don't match when 
     restricting to current server
 
diff --git a/chrome.manifest b/chrome.manifest
index d677594..ba9a14c 100644
--- a/chrome.manifest
+++ b/chrome.manifest
@@ -2,3 +2,4 @@ content	nostalgy	content/
 locale	nostalgy	en-US	locale/en-US/
 overlay	chrome://messenger/content/messenger.xul	chrome://nostalgy/content/thunderbirdOverlay.xul
 overlay	chrome://messenger/content/messageWindow.xul	chrome://nostalgy/content/messageOverlay.xul
+overlay	chrome://messenger/content/messengercompose/messengercompose.xul	chrome://nostalgy/content/composerOverlay.xul
diff --git a/chrome.manifest.pack b/chrome.manifest.pack
index e8cb378..acbab62 100644
--- a/chrome.manifest.pack
+++ b/chrome.manifest.pack
@@ -2,3 +2,4 @@ content	nostalgy	jar:chrome/nostalgy.jar!/content/
 locale	nostalgy	en-US	jar:chrome/nostalgy.jar!/locale/en-US/
 overlay	chrome://messenger/content/messenger.xul	chrome://nostalgy/content/thunderbirdOverlay.xul
 overlay	chrome://messenger/content/messageWindow.xul	chrome://nostalgy/content/messageOverlay.xul
+overlay	chrome://messenger/content/messengercompose/messengercompose.xul	chrome://nostalgy/content/composerOverlay.xul
diff --git a/content/composer.js b/content/composer.js
new file mode 100644
index 0000000..47c919a
--- /dev/null
+++ b/content/composer.js
@@ -0,0 +1,38 @@
+function gEBI(s) { return document.getElementById(s); }
+
+var nostalgy_old_awRecipientKeyPress = 0;
+
+function nostalgy_awRecipientKeyPress(event, element) {
+  if (event.charCode == 32 && element.selectionStart == 2) {
+    var id = element.id;
+    if (id.match(/addressCol2#/)) {
+    var select = gEBI(id.replace(/addressCol2#/,"addressCol1#"));
+    var v = element.value;
+    var u = v.replace(/ >> .*/, "");
+    var f = v.substr(0,2);
+    if (f == "to" || f == "cc") {
+	select.value = "addr_" + f;
+	element.value = "";
+	setTimeout(function(){
+	  element.value = u.substr(2,u.length - 2);
+ 	  element.selectionStart = 0; element.selectionEnd = 0;
+        }, 0);
+	event.preventBubble();
+	event.stopPropagation();
+	return;
+    }
+    }
+  }
+  nostalgy_old_awRecipientKeyPress(event, element);
+}
+
+function onNostalgyLoad(){
+  var tbox = gEBI("addressingWidget");
+  nostalgy_old_awRecipientKeyPress = window.awRecipientKeyPress;
+  window.awRecipientKeyPress = nostalgy_awRecipientKeyPress;
+  alert("UUUX");
+/*  window.addEventListener("keypress", onNostalgyKeyPress, true);
+  alert("T"); */
+}
+
+window.addEventListener("load", onNostalgyLoad, false);
diff --git a/content/composerOverlay.xul b/content/composerOverlay.xul
new file mode 100644
index 0000000..23bb7f1
--- /dev/null
+++ b/content/composerOverlay.xul
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE overlay SYSTEM "chrome://nostalgy/locale/nostalgy.dtd">
+<overlay id="nostalgy-compose-overlay"
+         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <script src="composer.js"/>
+</overlay>
diff --git a/files b/files
index 081b440..8b27024 100644
--- a/files
+++ b/files
@@ -1,11 +1,13 @@
 content/about.xul
 content/edit_prefs.xul
 content/thunderbirdOverlay.xul
+content/composer.js
 content/messageOverlay.xul
 content/about.xhtml
 content/edit_rule.xul
 content/folders.js
 content/edit_rule.js
+content/composerOverlay.xul
 content/edit_prefs.js
 content/nostalgy.js
 locale/en-US/nostalgy.dtd

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list