Skip to content
This repository
Browse code

Remove name availability indicator when updating.

Thanks for the heads-up /u/davidjayhawk!
  • Loading branch information...
commit c45f0b5328e1f949b694ce1de7158476e7c3c263 1 parent fbc8eea
Max Goodman authored September 14, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  r2/r2/public/static/js/login.js
4  r2/r2/public/static/js/login.js
@@ -244,7 +244,9 @@ r.ui.RegisterForm.prototype = $.extend(new r.ui.Form(), {
244 244
             this.showErrors(result.json.errors)
245 245
             this.$submit.attr('disabled', true)
246 246
         } else {
247  
-            this.$el.addClass(result ? 'name-available' : 'name-taken')
  247
+            this.$el
  248
+                .removeClass('name-available name-taken')
  249
+                .addClass(result ? 'name-available' : 'name-taken')
248 250
             this.$submit.attr('disabled', result == false)
249 251
         }
250 252
     },

0 notes on commit c45f0b5

Please sign in to comment.
Something went wrong with that request. Please try again.