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:
commit
c9552c2cd9
2 changed files with 4 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
## Refactor
|
||||
|
||||
## Bug fixes
|
||||
* Fix hiding of poll publisher on close [#5029](https://github.com/diaspora/diaspora/issues/5029)
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue