mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Upload modal was broken
This commit is contained in:
parent
47495a5713
commit
d569a4e418
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
actions: {
|
||||
upload() {
|
||||
if (this.get('local')) {
|
||||
$('#reply-control').fileupload('add', { fileInput: $('#filename-input') });
|
||||
$('.wmd-controls').fileupload('add', { fileInput: $('#filename-input') });
|
||||
} else {
|
||||
const imageUrl = this.get('imageUrl') || '';
|
||||
const imageLink = this.get('imageLink') || '';
|
||||
|
@ -40,8 +40,8 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
} else {
|
||||
toolbarEvent.addText(imageUrl);
|
||||
}
|
||||
this.send('closeModal');
|
||||
}
|
||||
this.send('closeModal');
|
||||
},
|
||||
|
||||
useLocal() {
|
||||
|
|
Loading…
Reference in a new issue