mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
FIX: not unbinding uploadTarget correctly
This commit is contained in:
parent
346768921e
commit
77c7bad61f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue