[Pkg-mozext-commits] [nostalgy] 108/235: *** empty log message ***

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:41:56 UTC 2013


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

taffit pushed a commit to branch master
in repository nostalgy.

commit 36f4d135c5628fd8721c33e1585b1c69e0b92864
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Sat Jun 2 18:59:26 2007 +0000

    *** empty log message ***
    
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@108 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 CHANGES               |    1 +
 content/edit_prefs.js |   26 +++++++-------------------
 2 files changed, 8 insertions(+), 19 deletions(-)

diff --git a/CHANGES b/CHANGES
index 21e7b79..e2c8ed1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,7 @@ Since 0.2.13
     the 5 more recently selected folders (to be selected with up/down)
   - new "Save and Go" feature
 
+  - double-clicking on a rule in the pref dialog to edit it
   - make Nostalgy work with TB 3.0 (tested with 3.0a1pre)
   - Thunderbirds shortcuts that are hidden by Nostalgy can now
     be used (type "Escape" before)
diff --git a/content/edit_prefs.js b/content/edit_prefs.js
index 0a307f3..f69ed65 100644
--- a/content/edit_prefs.js
+++ b/content/edit_prefs.js
@@ -32,23 +32,6 @@ String.prototype.quote = function () {
   return '"' + x + '"';
 };
 
-/*
-String.prototype.escape_spaces = function() {
-  return this.replace(/([\x20_])/g, function(a,b) {
-    if (b = " ") return "_";
-    else return "\\_"
-  });
-}
-
-String.prototype.unescape_spaces = function() {
-  return this.replace(/(_|\\_)/g, function(a,b) {
-    if (b = "_") return " ";
-    else return "_"
-  });
-}
-*/
-
-
 function NostalgySendRules() {
   var sAccountManager = 
     Components.classes["@mozilla.org/messenger/account-manager;1"].
@@ -135,6 +118,8 @@ function RuleOfItem(item) {
 
 function CreateItem(rule) {
   var item = document.createElement("listitem");
+
+  item.addEventListener("dblclick", function() { DoEditItem(item); }, false);
   item.appendChild(document.createElement("listcell"));
   item.appendChild(document.createElement("listcell"));
   item.appendChild(document.createElement("listcell"));
@@ -184,13 +169,16 @@ function EditRule(rule, accept) {
 	             rule,accept);
 }
 
-function DoEdit() {
-  var item = gList.selectedItem;
+function DoEditItem(item) {
   if (item) { 
     EditRule(RuleOfItem(item), function(rule) { SetItem(item,rule); });
   }
 }
 
+function DoEdit() {
+  DoEditItem(gList.selectedItem);
+}
+
 function SwapItems(idx1,idx2) {
   var item1 = gList.getItemAtIndex(idx1);
   var item2 = gList.getItemAtIndex(idx2);

-- 
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