allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/5] allura git commit: [#7459] Remove unused extra_js snippet
Date Mon, 22 Oct 2018 16:30:54 GMT
Repository: allura
Updated Branches:
  refs/heads/master 45d1007cf -> d140a56e8


[#7459] Remove unused extra_js snippet


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/d140a56e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d140a56e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d140a56e

Branch: refs/heads/master
Commit: d140a56e879d178ad67f451c7e202fec8d8e57e1
Parents: f57c419
Author: Shalitha <shalithasuranga@gmail.com>
Authored: Sat Oct 20 16:47:59 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Oct 22 16:24:44 2018 +0000

----------------------------------------------------------------------
 Allura/allura/templates/create_account.html | 21 ---------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d140a56e/Allura/allura/templates/create_account.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/create_account.html b/Allura/allura/templates/create_account.html
index 48171c7..6113cb7 100644
--- a/Allura/allura/templates/create_account.html
+++ b/Allura/allura/templates/create_account.html
@@ -28,24 +28,3 @@
   {{ c.form.display() }}
 </div>
 {% endblock %}
-
-{% block extra_js %}
-  <script type="text/javascript">
-    /*<![CDATA[*/
-    $('#create_account').submit(function () {
-      if (!$('#username').attr('value').match(/^[a-zA-Z0-9]+$/)) {
-        alert('Username can only contain numbers and letters.');
-        return false;
-      }
-      if ($('#password').attr('value').length < 8) {
-        alert('Password must be at least 8 characters long.');
-        return false;
-      }
-      if ($('#password').attr('value') !== $('#confirm_password').attr('value')) {
-        alert('Password and Confirm Password must match.');
-        return false;
-      }
-    });
-    /*]]>*/
-  </script>
-{% endblock %}


Mime
View raw message