diff --git a/app/assets/javascripts/discourse/views/dismissable_input_tip_view.js b/app/assets/javascripts/discourse/views/popup_input_tip_view.js similarity index 87% rename from app/assets/javascripts/discourse/views/dismissable_input_tip_view.js rename to app/assets/javascripts/discourse/views/popup_input_tip_view.js index a4c5be876c3..0b71b346f11 100644 --- a/app/assets/javascripts/discourse/views/dismissable_input_tip_view.js +++ b/app/assets/javascripts/discourse/views/popup_input_tip_view.js @@ -32,9 +32,13 @@ Discourse.PopupInputTipView = Discourse.View.extend({ bounce: function() { var $elem = this.$() if( !this.animateAttribute ) { - this.animateAttribute = $elem.css('left') == 'auto' ? 'right' : 'left'; + this.animateAttribute = $elem.css('left') === 'auto' ? 'right' : 'left'; + } + if( this.animateAttribute === 'left' ) { + this.bounceLeft($elem); + } else { + this.bounceRight($elem); } - this.animateAttribute == 'left' ? this.bounceLeft($elem) : this.bounceRight($elem); }.observes('show'), bounceLeft: function($elem) {