Browse Source

Merge pull request #376 from sonnylloyd/dev

Fixed FileUploader.js auto add to assets
pull/406/head
Artur Arseniev 9 years ago
committed by GitHub
parent
commit
66734987e3
  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