FIX: pasting image in the composer wasn't working in Chrome
This commit is contained in:
parent
4fd0200df8
commit
6556e1cb10
|
@ -314,7 +314,8 @@ var ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||
// NOTE: we need both the .json extension and the CSRF token as a query parameter for IE9
|
||||
$uploadTarget.fileupload({
|
||||
url: Discourse.getURL('/uploads.json?authenticity_token=' + encodeURIComponent(csrf)),
|
||||
dataType: 'json'
|
||||
dataType: 'json',
|
||||
pasteZone: $uploadTarget
|
||||
});
|
||||
|
||||
// submit - this event is triggered for each upload
|
||||
|
|
Loading…
Reference in New Issue