[Pkg-mozext-commits] [nostalgy] 03/235: *** empty log message ***
David Prévot
taffit at alioth.debian.org
Tue Oct 8 20:41:24 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 9b2ab1ffb636c6c23ca0748f0fc9aa9f74360929
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Thu May 11 07:43:40 2006 +0000
*** empty log message ***
git-svn-id: http://nostalgy.googlecode.com/svn/trunk@3 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
CHANGES | 7 +++++++
content/overlay.js | 34 ++++++++--------------------------
content/thunderbirdOverlay.xul | 6 +++++-
files | 2 +-
4 files changed, 21 insertions(+), 28 deletions(-)
diff --git a/CHANGES b/CHANGES
new file mode 100644
index 0000000..ea705e0
--- /dev/null
+++ b/CHANGES
@@ -0,0 +1,7 @@
+Since 0.1.2
+ - better displayed names for folder (no more %20 for local folders)
+ - better treatment of Escape
+
+0.1.2
+ - fix the double return bug
+
diff --git a/content/overlay.js b/content/overlay.js
index c0653f4..bf7563c 100644
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -1,8 +1,10 @@
function folder_name(folder) {
- var uri = folder.URI;
- var server_uri = folder.rootFolder.URI;
- var server_name = folder.rootFolder.prettyName;
- return (server_name + uri.substring(server_uri.length, uri.length));
+ var uri = folder.prettyName;
+ while (!folder.isServer) {
+ folder = folder.parent;
+ uri = folder.prettyName + "/" + uri;
+ }
+ return (uri);
}
/** Autocompletion of folders **/
@@ -35,10 +37,8 @@ myautocomplete.prototype.onStartLookup = function(text, results, listener) {
listener.onAutoComplete(this.xresults, 1);
}
-myautocomplete.prototype.onStopLookup = function() {}
-myautocomplete.prototype.onAutoComplete =
- function(text, results, listener){ NostalgyRunCommand(); }
-
+myautocomplete.prototype.onStopLookup = function() { }
+myautocomplete.prototype.onAutoComplete = function(text, results, listener){ }
myautocomplete.prototype.QueryInterface = function(iid) {
if (iid.equals(Components.interfaces.nsIAutoCompleteSession)) return this;
@@ -98,24 +98,6 @@ function NostalgyRunCommand() {
NostalgyHide();
}
-function NostalgyKeyPress(event) {
- if (event.keyCode == 13) {
- NostalgyRunCommand();
- event.preventDefault();
- return;
- }
- if (event.keyCode == 9)
- {
- NostalgyHide();
- event.preventDefault();
- }
- if (event.keyCode == 27)
- {
- NostalgyHide();
- event.preventDefault();
- }
-}
-
/** Folder traversal **/
function FindFolder(uri)
diff --git a/content/thunderbirdOverlay.xul b/content/thunderbirdOverlay.xul
index a794560..a1823ac 100644
--- a/content/thunderbirdOverlay.xul
+++ b/content/thunderbirdOverlay.xul
@@ -18,10 +18,14 @@
<label id="statusbar-nostalgy-label"
position="1"
value="&nostalgy.memo;"/>
+
<textbox id="statusbar-nostalgy" type="autocomplete" tabScrolling="true"
+ ontextcommand="NostalgyRunCommand();"
+ ontextrevert="NostalgyHide();"
position="2"
maxlength="160" flex="3"
maxrows="15" crop="end"
- onkeypress="NostalgyKeyPress(event);" style="width: 300px;"/>
+ style="width: 300px;"/>
</statusbar>
+
</overlay>
diff --git a/files b/files
index 37c80e1..07c8d22 100644
--- a/files
+++ b/files
@@ -1,5 +1,5 @@
-content/thunderbirdOverlay.xul
content/overlay.js
+content/thunderbirdOverlay.xul
locale/en-US/nostalgy.dtd
locale/en-US/nostalgy.properties
defaults/preferences/nostalgy.js
--
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