lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js in ckeditor-3.6.0 vs lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js in ckeditor-3.6.1

- old
+ new

@@ -161,10 +161,10 @@ }, _onComplete: function(id, fileName, result){ qq.FileUploaderBasic.prototype._onComplete.apply(this, arguments); var item = this._getItemByFileId(id); - var asset = result.asset; + var asset = result.asset ? result.asset : result; if (asset && asset.id){ qq.addClass(item, this._classes.success); asset.size = this._formatSize(asset.size);