diff --git a/Changelog.md b/Changelog.md index e4774b931..d44660124 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,6 +3,7 @@ ## Refactor ## Bug fixes +* Fix hiding of poll publisher on close [#5029](https://github.com/diaspora/diaspora/issues/5029) ## Features diff --git a/app/assets/javascripts/app/views/publisher_view.js b/app/assets/javascripts/app/views/publisher_view.js index 6c8497a61..6d983737d 100644 --- a/app/assets/javascripts/app/views/publisher_view.js +++ b/app/assets/javascripts/app/views/publisher_view.js @@ -69,7 +69,7 @@ app.views.Publisher = Backbone.View.extend({ _this.tryClose() } }); - + // close publisher on post this.on('publisher:add', function() { this.close(); @@ -405,10 +405,10 @@ app.views.Publisher = Backbone.View.extend({ $(this.el).addClass("closed"); this.el_wrapper.removeClass("active"); this.el_input.css('height', ''); - this.view_poll_creator.$el.removeClass('active'); + this.view_poll_creator.$el.hide(); return this; }, - + showSpinner: function(bool) { if (bool) this.$('#publisher_spinner').removeClass('hidden');