Skip to content

Commit

Permalink
hide .centerBox when it goes away
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Jan 13, 2012
1 parent 4faad49 commit 712336c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/authentication/base.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class exports.AuthenticationView extends Backbone.View
top : "#{curr_pos.top}px"
left: "#{curr_pos.left}px"
).animate({top:"#{curr_pos.top + 50}px"}, 200)
.animate top:"-800px", =>
@remove()
.animate top:"-800px", ->
$(this).hide()

error: (type) =>
app.handler.connection.reset()
Expand All @@ -44,7 +44,7 @@ class exports.AuthenticationView extends Backbone.View
).animate({left:"#{curr_pos.left + 10}"},50)
.animate({left:"#{curr_pos.left - 10}"},50)
.animate({left:"#{curr_pos.left + 10}"},50)
.animate {left:"#{curr_pos.left - 10}"},50, =>
.animate({left:"#{curr_pos.left - 10}"},50)
@el.find("form").addClass('hasError')
par = @el.find("##{type}").show().parent()
do par.show if par.hasClass('error')
Expand Down

0 comments on commit 712336c

Please sign in to comment.