subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1706928 - in /subversion/site/publish: reporting-issues.html site-nav.html
Date Mon, 05 Oct 2015 22:03:58 GMT
Author: danielsh
Date: Mon Oct  5 22:03:58 2015
New Revision: 1706928

URL: http://svn.apache.org/viewvc?rev=1706928&view=rev
Log:
site: Prettify some forms.

* site-nav.html: Just use the 'placeholder' attribute instead of reinventing it.

* reporting-issues.html: Ditto.  Also, set the 'type' attribute on the issue number
    lookup form.

Modified:
    subversion/site/publish/reporting-issues.html
    subversion/site/publish/site-nav.html

Modified: subversion/site/publish/reporting-issues.html
URL: http://svn.apache.org/viewvc/subversion/site/publish/reporting-issues.html?rev=1706928&r1=1706927&r2=1706928&view=diff
==============================================================================
--- subversion/site/publish/reporting-issues.html (original)
+++ subversion/site/publish/reporting-issues.html Mon Oct  5 22:03:58 2015
@@ -56,9 +56,10 @@
 
 <form method="get" onsubmit="this.action='https://issues.apache.org/jira/browse/SVN-'+this.issueNumber.value;">
 <div style="display: inline;">
-<input name="issueNumber" size="10" value="Issue number..."
-       style="width: 10em; color: gray;" 
-       onclick="if(this.value == 'Issue number...') { this.value = ''; this.style.color =
'black'; }" />
+<input name="issueNumber" size="10" placeholder="Issue number..."
+       style="width: 10em" 
+       type="number"
+       />
 <input type="submit" value="Jump to issue" />
 </div>
 </form>
@@ -68,9 +69,9 @@
 
 <form onsubmit="window.open('https://issues.apache.org/jira/issues/?jql=' + escape('project
= SVN AND text ~ &quot;'+this.searchText.value+'&quot;'));">
 <div style="display: inline;">
-<input name="searchText" size="20" value="Keywords..."
-       style="width: 10em; color: gray;" 
-       onclick="if(this.value == 'Keywords...') { this.value = ''; this.style.color = 'black';
}" />
+<input name="searchText" size="20" placeholder="Keywords..."
+       style="width: 10em" 
+       />
 <input type="submit" value="Keyword search" />
 </div>
 </form>

Modified: subversion/site/publish/site-nav.html
URL: http://svn.apache.org/viewvc/subversion/site/publish/site-nav.html?rev=1706928&r1=1706927&r2=1706928&view=diff
==============================================================================
--- subversion/site/publish/site-nav.html (original)
+++ subversion/site/publish/site-nav.html Mon Oct  5 22:03:58 2015
@@ -45,9 +45,9 @@
         style="margin-top: 10px; margin-bottom: 10px; display: inline;">
   <div style="display: inline;">
     <input value="subversion.apache.org" name="sitesearch" type="hidden" />
-    <input name="q" id="query" type="text" value="Search..."
-           style="width: 10em; color: gray;" 
-           onclick="if(this.value == 'Search...') { this.value = ''; this.style.color = 'black';
}" />
+    <input name="q" id="query" type="text" placeholder="Search..."
+           style="width: 10em"
+           />
     <input name="Search" value="Go" type="submit"/>
   </div>
   </form>



Mime
View raw message