Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit b212cac

Browse files
committed
Fixes #81
1 parent 585aad6 commit b212cac

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

views/default/user_login.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ <h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
2424
{{pass}}
2525
//--></script>
2626

27+

views/layout_login.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,19 @@ <h4>{{=register_title}}</h4>
8888
});
8989
</script>
9090

91-
<!-- only allow registering when required boxes are checked -->
9291

9392

93+
<!-- Remove spaces from login email input -->
94+
<script language="javascript">
95+
jQuery(document).ready(function() {
96+
var $input_email = $('#auth_user_email');
97+
$input_email.on('change', function() {
98+
console.log($(this).val());
99+
$input_email.val($(this).val().replace(/\s/g, ''));
100+
});
101+
});
102+
</script>
103+
94104
<!-- Google Analytics -->
95105
{{ if response.google_analytics_id: }}
96106
<script>

0 commit comments

Comments
 (0)