Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

IE8 error fix

  • Loading branch information...
commit d9db853e684ed15ca8155470a4e89112dc3cd06f 1 parent 194fb36
@dangrossman authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 public/js/views/PublicView.js
View
12 public/js/views/PublicView.js
@@ -21,9 +21,13 @@ var PublicView = Backbone.View.extend({
signup: function(e) {
e.preventDefault();
- var username = $('#frm-signup input[name=username]').val().trim();
- var password = $('#frm-signup input[name=password]').val().trim();
- var email = $('#frm-signup input[name=email]').val().trim();
+ var username = $('#frm-signup input[name=username]').val();
+ var password = $('#frm-signup input[name=password]').val();
+ var email = $('#frm-signup input[name=email]').val();
+
+ username = $.trim(username);
+ password = $.trim(password);
+ email = $.trim(email);
var error = '';
@@ -38,7 +42,7 @@ var PublicView = Backbone.View.extend({
if (error != '') {
$('#signup-error').html(error).addClass('alert-message').addClass('error');
- return;
+ return false;
}
$.ajax({
Please sign in to comment.
Something went wrong with that request. Please try again.