summaryrefslogtreecommitdiffstats
path: root/tools/infra-dashboard/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/infra-dashboard/index.php')
-rw-r--r--tools/infra-dashboard/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/infra-dashboard/index.php b/tools/infra-dashboard/index.php
index 56c765a9..afd18b98 100644
--- a/tools/infra-dashboard/index.php
+++ b/tools/infra-dashboard/index.php
@@ -98,7 +98,9 @@
$(function() {
var dialog, form,
- allFields = $( [] ).add( login_email ).add( login_password );
+ login_email = $( "#login_email" ),
+ login_password = $( "#login_password" ),
+ allFields = $( [] ).add( login_email ).add( login_password ),
emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
function checkLength( o, n, min, max ) {