Browse files

IE8 error fix

  • Loading branch information...
1 parent 194fb36 commit d9db853e684ed15ca8155470a4e89112dc3cd06f @dangrossman committed Feb 4, 2012
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({

0 comments on commit d9db853

Please sign in to comment.