You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2006/09/08 10:27:21 UTC
svn commit: r441431 - in /forrest/trunk/tools/forrestbar/xpi/chrome/content:
forrestbarOverlay.js forrestbarOverlay.xul
Author: crossley
Date: Fri Sep 8 01:27:21 2006
New Revision: 441431
URL: http://svn.apache.org/viewvc?view=rev&rev=441431
Log:
Search at Gmane and also search the SVN commits.
Modified:
forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul
Modified: forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js
URL: http://svn.apache.org/viewvc/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js?view=diff&rev=441431&r1=441430&r2=441431
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js (original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.js Fri Sep 8 01:27:21 2006
@@ -49,15 +49,34 @@
var searchItem = document.getElementById(searchID);
if (engine == 'aims') {
navigate('http://marc.theaimsgroup.com/?l=forrest-dev&w=2&r=1&q=b&s=' + searchItem.value);
+ } else if (engine == 'gmane') {
+ navigate('http://search.gmane.org/?group=gmane.text.xml.forrest.devel&sort=date&query=' + searchItem.value);
+ } else if (engine == 'asf') {
} else {
navigate('http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=dev_forrest_apache_org&restrict=&exclude=&words=' + searchItem.value);
}
}
-function searchUser(searchID)
+function searchUser(engine, searchID)
{
var searchItem = document.getElementById(searchID);
- navigate('http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=user_forrest_apache_org&restrict=&exclude=&words=' + searchItem.value);
+ if (engine == 'gmane') {
+ navigate('http://search.gmane.org/?group=gmane.text.xml.forrest.user&sort=date&query=' + searchItem.value);
+ } else if (engine == 'asf') {
+ navigate('http://search.gmane.org/?group=gmane.text.xml.forrest.user&sort=date&query=' + searchItem.value);
+ } else {
+ navigate('http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=user_forrest_apache_org&restrict=&exclude=&words=' + searchItem.value);
+ }
+}
+
+function searchCommits(engine, searchID)
+{
+ var searchItem = document.getElementById(searchID);
+ if (engine == 'gmane') {
+ navigate('http://search.gmane.org/?group=gmane.text.xml.forrest.cvs&sort=date&query=' + searchItem.value);
+ } else {
+ navigate('http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=svn_forrest_apache_org&restrict=&exclude=&words=' + searchItem.value);
+ }
}
function searchIssue(searchID)
Modified: forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul
URL: http://svn.apache.org/viewvc/forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul?view=diff&rev=441431&r1=441430&r2=441431
==============================================================================
--- forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul (original)
+++ forrest/trunk/tools/forrestbar/xpi/chrome/content/forrestbarOverlay.xul Fri Sep 8 01:27:21 2006
@@ -111,8 +111,12 @@
<toolbarbutton label="Search" hidden="false" type="menu">
<menupopup>
<menuitem label="Dev (MARC)" onclick="searchDev('aims', 'forrestbar-input');" hidden="false"/>
+ <menuitem label="Dev (Gmane)" onclick="searchDev('gmane', 'forrestbar-input');" hidden="false"/>
<menuitem label="Dev (The Mail Archive)" onclick="searchDev('mailArchive', 'forrestbar-input');" hidden="false"/>
- <menuitem label="User (The Mail Archive)" onclick="searchUser('forrestbar-input');" hidden="false"/>
+ <menuitem label="User (Gmane)" onclick="searchUser('gmane', 'forrestbar-input');" hidden="false"/>
+ <menuitem label="User (The Mail Archive)" onclick="searchUser('mailArchive', 'forrestbar-input');" hidden="false"/>
+ <menuitem label="Commits (Gmane)" onclick="searchCommits('gmane', 'forrestbar-input');" hidden="false"/>
+ <menuitem label="Commits (The Mail Archive)" onclick="searchCommits('mailArchive', 'forrestbar-input');" hidden="false"/>
<menuitem label="Forrest Site" onclick="searchSite('forrestbar-input');" hidden="false"/>
<menuitem label="JIRA Issues" onclick="searchIssue('forrestbar-input');" hidden="false"/>
</menupopup>