You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ds...@apache.org on 2021/02/01 21:02:55 UTC
svn commit: r1886109 - /subversion/site/staging/mailing-lists.html
Author: dsahlberg
Date: Mon Feb 1 21:02:54 2021
New Revision: 1886109
URL: http://svn.apache.org/viewvc?rev=1886109&view=rev
Log:
* site/staging/mailing-lists.html
Pre-set inurl:subversion in the search-box for users who don't have
javascript. For users who have javascript it is removed in body.onload
and re-added onsubmit.
Suggested by: danielsh (http://mail-archives.apache.org/mod_mbox/subversion-dev/202101.mbox/%3cf909d068-2f41-4178-aa86-ec7c677da719@www.fastmail.com%3e)
Modified:
subversion/site/staging/mailing-lists.html
Modified: subversion/site/staging/mailing-lists.html
URL: http://svn.apache.org/viewvc/subversion/site/staging/mailing-lists.html?rev=1886109&r1=1886108&r2=1886109&view=diff
==============================================================================
--- subversion/site/staging/mailing-lists.html (original)
+++ subversion/site/staging/mailing-lists.html Mon Feb 1 21:02:54 2021
@@ -9,7 +9,7 @@
</style>
</head>
-<body>
+<body onload="document.getElementById('q').value = document.getElementById('q').value.replace(/inurl:subversion /gi, '');">
<!--#include virtual="/site-banner.html" -->
<!--#include virtual="/site-nav.html" -->
<div id="site-content">
@@ -43,8 +43,16 @@
<input type="hidden" name="oe" value="ISO-8859-1" />
<input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:FF9900;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;FORID:1;" />
<input type="hidden" name="hl" value="en" />
- <input type="text" name="q" size="31" maxlength="255" value="" id="q"/>
- <input type="submit" name="sa" value="Search the archives" onclick="document.getElementById('q').value = document.getElementById('q').value+' inurl:subversion';"/>
+ <!--
+ The value inurl:subversion is because Google sitesearch doesn't provide
+ a way to search just a subdirectory of a site, and we don't want matches
+ in other mailing lists at mail-archives.a.o.
+ For browsers without javascript the default value is there as a help.
+ For browsers with javascript the value is removed in body.onload and added
+ on submit to decrease clutter for the users.
+ -->
+ <input type="text" name="q" size="31" maxlength="255" value="inurl:subversion " id="q"/>
+ <input type="submit" name="sa" value="Search the archives" onclick="if (!document.getElementById('q').value.includes('inurl:subversion ')) { document.getElementById('q').value = 'inurl:subversion '+document.getElementById('q').value; }"/>
</p>
</form>
<!-- SiteSearch Google -->