Merge pull request #5030 from hpetru/5029-hide-poll-input-after-post-submit

Fix hiding poll publisher for close action
This commit is contained in:
Jason Robinson 2014-06-27 11:12:52 +03:00
commit c9552c2cd9
2 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@
## Refactor
## Bug fixes
* Fix hiding of poll publisher on close [#5029](https://github.com/diaspora/diaspora/issues/5029)
## Features

View file

@ -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');