From 1d099784408c74c92307242975253b9561020d8b Mon Sep 17 00:00:00 2001 From: Hincu Petru Date: Wed, 25 Jun 2014 10:45:36 +0000 Subject: [PATCH] Fix hidding of poll publisher for close action --- Changelog.md | 1 + app/assets/javascripts/app/views/publisher_view.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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');