fixing path for uploads js

Oleg committed Jul 21, 2011
commit aa51d4768434c4d18a303712e37cc79294c90cb6
Showing 3 changed files with 3 additions and 3 deletions
Gemfile +1 -1
@@ @@ -1,7 +1,7 @@
source 'http://rubygems.org'
gem 'rails', '>=3.0.0'
- gem 'active_link_to', '>=0.0.8'
+ gem 'active_link_to', '>=0.0.10'
gem 'paperclip', '>=2.3.14'
group :development do
app/assets/javascripts/comfortable_mexican_sofa/application.js +1 -1
@@ @@ -151,7 +151,7 @@ $.CMS = function(){
unique_names: true,
multipart: true,
multipart_params: { authenticity_token: auth_token, format: 'js' },
- url: '/' + admin_path_prefix + '/uploads'
+ url: $('#file_uploads').data('path')
});
uploader.init();
uploader.bind('FilesAdded', function(up, files) {
app/views/cms_admin/uploads/_index.html.erb +1 -1
@@ @@ -1,4 +1,4 @@
- <div id='file_uploads' class='box'>
+ <div id='file_uploads' class='box' data-path='<%= cms_admin_site_uploads_path(@site) %>'>
<div class='actions'>
<a id='uploader_button' href='#' class='big button'><%= t('.button') %></a>
</div>