lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js in ckeditor-3.6.2 vs lib/generators/ckeditor/templates/ckeditor/filebrowser/javascripts/application.js in ckeditor-3.6.3
- old
+ new
@@ -75,11 +75,12 @@
this._element = document.getElementById(this._options.element);
this._listElement = this._options.listElement || this._find(this._element, 'list');
this._classes = this._options.classes;
- this._button = this._createUploadButton(this._find(this._element, 'button'));
+ this._button = this._createUploadButton(this._find(this._element, 'button'));
+ this._path = $('meta[name="ckeditor-path"]').attr('content');
//this._setupDragDrop();
qq.FileUploader.instances[this._element.id] = this;
};
@@ -187,10 +188,10 @@
filename: this._formatFileName(fileName),
size: 0,
format_created_at: '',
url_content: "#",
controller: "assets",
- url_thumb: "/javascripts/ckeditor/filebrowser/images/preloader.gif"
+ url_thumb: this._path + "/ckeditor/filebrowser/images/preloader.gif"
};
var item = $(this._options.template_id)
.tmpl(asset)
.attr('qqfileid', id)