mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Upload modal was broken
This commit is contained in:
parent
47495a5713
commit
d569a4e418
@ -29,7 +29,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
actions: {
|
actions: {
|
||||||
upload() {
|
upload() {
|
||||||
if (this.get('local')) {
|
if (this.get('local')) {
|
||||||
$('#reply-control').fileupload('add', { fileInput: $('#filename-input') });
|
$('.wmd-controls').fileupload('add', { fileInput: $('#filename-input') });
|
||||||
} else {
|
} else {
|
||||||
const imageUrl = this.get('imageUrl') || '';
|
const imageUrl = this.get('imageUrl') || '';
|
||||||
const imageLink = this.get('imageLink') || '';
|
const imageLink = this.get('imageLink') || '';
|
||||||
@ -40,8 +40,8 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
} else {
|
} else {
|
||||||
toolbarEvent.addText(imageUrl);
|
toolbarEvent.addText(imageUrl);
|
||||||
}
|
}
|
||||||
this.send('closeModal');
|
|
||||||
}
|
}
|
||||||
|
this.send('closeModal');
|
||||||
},
|
},
|
||||||
|
|
||||||
useLocal() {
|
useLocal() {
|
||||||
|
Loading…
Reference in New Issue
Block a user