FIX: pasting image in the composer wasn't working in Chrome

This commit is contained in:
Régis Hanol 2015-01-29 16:26:40 +01:00
parent 4fd0200df8
commit 6556e1cb10
1 changed files with 2 additions and 1 deletions

View File

@ -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