Author: sebb
Date: Thu Apr 21 17:34:29 2016
New Revision: 1740368
URL: http://svn.apache.org/viewvc?rev=1740368&view=rev
Log:
Missing JS file
Added:
comdev/projects.apache.org/site/js/validate_form.js (with props)
Added: comdev/projects.apache.org/site/js/validate_form.js
URL:
http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/validate_form.js?rev=1740368&view=auto
==============================================================================
--- comdev/projects.apache.org/site/js/validate_form.js (added)
+++ comdev/projects.apache.org/site/js/validate_form.js Thu Apr 21 17:34:29 2016
@@ -0,0 +1,15 @@
+/* validate the fields of the "make_doap" form */
+function validate_form ( )
+{
+ valid = true;
+
+ if ( document.make_doap.std_title.value != "" &&
document.make_doap.std_id.value == "" )
+ {
+ alert ( "Please fill in the Implemented Standard 'ID' field." );
+ document.make_doap.std_id.placeholder="<required if title provided>";
+ document.make_doap.std_id.focus();
+ valid = false;
+ }
+
+ return valid;
+}
Propchange: comdev/projects.apache.org/site/js/validate_form.js
------------------------------------------------------------------------------
svn:eol-style = native