Fix uploader, ie9 ok, not ie8

This commit is contained in:
Christophe Vilayphiou committed 2012-08-07 17:32:15 +08:00
1 parent 73b2cd1035
commit 8ea7bf75cd
6 files changed
+79 -18

No files matched your search

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