mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: not unbinding uploadTarget correctly
This commit is contained in:
parent
346768921e
commit
77c7bad61f
@ -541,7 +541,7 @@ const ComposerView = Discourse.View.extend(Ember.Evented, {
|
||||
|
||||
_unbindUploadTarget() {
|
||||
this.messageBus.unsubscribe("/uploads/composer");
|
||||
const $uploadTarget = $("#reply-controler");
|
||||
const $uploadTarget = $("#reply-control");
|
||||
try { $uploadTarget.fileupload("destroy"); }
|
||||
catch (e) { /* wasn't initialized yet */ }
|
||||
$uploadTarget.off();
|
||||
|
Loading…
Reference in New Issue
Block a user