community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1769830 - in /comdev/reporter.apache.org/trunk/site: addrelease.html js/addrelease.js
Date Tue, 15 Nov 2016 13:36:55 GMT
Author: hboutemy
Date: Tue Nov 15 13:36:55 2016
New Revision: 1769830

URL: http://svn.apache.org/viewvc?rev=1769830&view=rev
Log:
another try at getting a default date without being replaced by placeholder

Modified:
    comdev/reporter.apache.org/trunk/site/addrelease.html
    comdev/reporter.apache.org/trunk/site/js/addrelease.js

Modified: comdev/reporter.apache.org/trunk/site/addrelease.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.html?rev=1769830&r1=1769829&r2=1769830&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/addrelease.html (original)
+++ comdev/reporter.apache.org/trunk/site/addrelease.html Tue Nov 15 13:36:55 2016
@@ -40,7 +40,7 @@
     <input type="hidden" name="date" value="" id="date"/>
     <b>Committee:</b><input type="text" name="committee" value="" readonly="readonly"
id="committee"/>
     <b>Full version name:</b> (Note: use a product name prefix if the PMC releases
multiple products)<input type="text" name="version" value="" placeholder="1.2.0 or LANG-1.2.0
(e.g. Commons)" id="version"/>
-    <b>Date of release (YYYY-MM-DD):</b> (Note: use 1970-01-01 to remove a release)<input
type="text" name="xdate" value="" id="xdate"/>
+    <b>Date of release (YYYY-MM-DD):</b> (Note: use 1970-01-01 to remove a release)<input
type="text" name="xdate" value="" placeholder="YYYY-MM-DD (use 1970-01-01 to remove a release)"
id="xdate"/>
     <input type="submit" value="Update release data"/>
    </form>
 </div>

Modified: comdev/reporter.apache.org/trunk/site/js/addrelease.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/addrelease.js?rev=1769830&r1=1769829&r2=1769830&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/addrelease.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/addrelease.js Tue Nov 15 13:36:55 2016
@@ -11,7 +11,7 @@
  document.getElementById('committee').value = committee;
  var xdate = document.getElementById('xdate');
  var done = false;
- xdate.value = new Date().toISOString().substring(0, 10)
+ xdate.defaultValue = new Date().toISOString().substring(0, 10)
  
  function validate(form) {
   var x = document.getElementById('xdate').value.split("-");



Mime
View raw message