Browse Source

Update FileUploader.js

fixes asset manager to auto add images to assets
pull/376/head
Sonny Lloyd 8 years ago
committed by GitHub
parent
commit
d2318f4994
  1. 2
      src/asset_manager/view/FileUploader.js

2
src/asset_manager/view/FileUploader.js

@ -73,7 +73,7 @@ module.exports = Backbone.View.extend({
const em = this.config.em;
const config = this.config;
const target = this.target;
const json = typeof text === 'text' ? JSON.parse(text) : text;
const json = typeof text === 'string' ? JSON.parse(text) : text;
em && em.trigger('asset:upload:response', json);
if (config.autoAdd && target) {

Loading…
Cancel
Save