[Pkg-mozext-commits] [nostalgy] 110/235: *** empty log message ***
David Prévot
taffit at alioth.debian.org
Tue Oct 8 20:41:57 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 1cee0c9f813e895f13864de7f5b8fac03f9ddd3a
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Sat Jun 2 20:04:58 2007 +0000
*** empty log message ***
git-svn-id: http://nostalgy.googlecode.com/svn/trunk@110 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
CHANGES | 2 +-
content/nostalgy.js | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/CHANGES b/CHANGES
index 30da183..3283c1f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,7 @@
Since 0.2.13
- a system to export and import Nostalgy's rules (through e-mails)
- when showing a folder, if no message is currently selected,
- select the last one
+ select either the first unread one, if any, or the last message otherwise
- change the behavior of the QuickSearch box:
* always show the popup menu to select/show the current search criterion
* UP/DOWN: change the criterion (the view is automatically updated)
diff --git a/content/nostalgy.js b/content/nostalgy.js
index 9ab096f..cc09c85 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -204,10 +204,14 @@ function NostalgySelectMessageByNavigationType(type)
if ((resultId.value != nsMsgKey_None) &&
(resultIndex.value != nsMsgKey_None)) {
- // gDBView.selection.currentIndex = resultIndex.value;
+
+ //gDBView.selection.currentIndex = resultIndex.value;
gDBView.selection.timedSelect(resultIndex.value, 500);
//gDBView.selectMsgByKey(resultId.value);
+ gEBI("threadTree").treeBoxObject.ensureRowIsVisible(resultIndex.value);
+ return true;
}
+ return false;
}
function NostalgyMailSession() {
@@ -554,7 +558,9 @@ function NostalgySelectLastMsg() {
nostalgy_selection_saved = null;
} else
try { gDBView.viewIndexForFirstSelectedMsg; } catch (ex) {
+ if (!NostalgySelectMessageByNavigationType(nsMsgNavigationType.firstUnreadMessage)) {
NostalgySelectMessageByNavigationType(nsMsgNavigationType.lastMessage);
+ }
}
}
@@ -659,7 +665,7 @@ var NostalgyEscapePressed = 0;
function NostalgyFocusThreadPane() {
SetFocusThreadPane();
- // NostalgySelectLastMsg();
+ NostalgySelectLastMsg();
}
function NostalgySaveSelection() {
--
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