Fix hidding of poll publisher for close action

This commit is contained in:
Hincu Petru 2014-06-25 10:45:36 +00:00
parent b246c7b5ef
commit 1d09978440
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');