Asset upload

This commit is contained in:
Christophe Vilayphiou committed 2012-05-17 06:28:29 +08:00
1 parent 9129835f23
commit 26292f0dcc
15 files changed
+191 -43

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ function load_tinymce() {
function myFileBrowser(field_name, url, type, win) {
var cmsURL = window.location.toString();
cmsURL = cmsURL.split("/");
cmsURL = "<%= Rails.application.routes.url_helpers.new_admin_asset_path %>";
cmsURL = "<%= Rails.application.routes.url_helpers.file_upload_admin_assets_path %>";
console.log(cmsURL);
// script URL - use an absolute path!
if (cmsURL.indexOf("?") < 0) {