[Pkg-mozext-commits] [nostalgy] 174/235: Fix for TB 2.

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:42:16 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 5dc05ba13878ef2a9907d92f82ed73e02a5f8f8d
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Tue Oct 27 09:43:18 2009 +0000

    Fix for TB 2.
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@174 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 content/nostalgy.js |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/content/nostalgy.js b/content/nostalgy.js
index f78ed84..a1ab4af 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -13,6 +13,10 @@ var nostalgy_search_focused = false;
 var nostalgy_on_move_completed = null;
 var nostalgy_selection_saved = null;
 
+function NostalgyIsDefined(s) {
+    return (typeof(window[s]) != "undefined");
+}
+
 function NostalgySearch() {
     if (window.onEnterInSearchBar) {
         onEnterInSearchBar();
@@ -859,7 +863,7 @@ function NostalgySearchSender() {
   }
   else if (last_cycle_restrict == 2) {
       input.value = subj;
-      if (window.kQuickSearchSubject)
+      if (NostalgyIsDefined(kQuickSearchSubject))
           input.searchMode = kQuickSearchSubject;
       else if (window.QuickSearchConstants)
           input.searchMode = QuickSearchConstants.kQuickSearchSubject;

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