Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove name availability indicator when updating.

Thanks for the heads-up /u/davidjayhawk!
  • Loading branch information...
commit c45f0b5328e1f949b694ce1de7158476e7c3c263 1 parent fbc8eea
Max Goodman authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 r2/r2/public/static/js/login.js
View
4 r2/r2/public/static/js/login.js
@@ -244,7 +244,9 @@ r.ui.RegisterForm.prototype = $.extend(new r.ui.Form(), {
this.showErrors(result.json.errors)
this.$submit.attr('disabled', true)
} else {
- this.$el.addClass(result ? 'name-available' : 'name-taken')
+ this.$el
+ .removeClass('name-available name-taken')
+ .addClass(result ? 'name-available' : 'name-taken')
this.$submit.attr('disabled', result == false)
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.