Commit 8ab7240e04474b34d5c3980bcea04c4b578433ba
Exists in
staging
and in
7 other branches
Merge branch 'hotfixes' into stable
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
app/helpers/cms_helper.rb
| @@ -10,9 +10,7 @@ module CmsHelper | @@ -10,9 +10,7 @@ module CmsHelper | ||
| 10 | end | 10 | end |
| 11 | 11 | ||
| 12 | def add_upload_file_field(name, locals) | 12 | def add_upload_file_field(name, locals) |
| 13 | - button_to_function :add, name, nil do |page| | ||
| 14 | - page.insert_html :bottom, :uploaded_files, CGI::escapeHTML(render(:partial => 'upload_file', :locals => locals, :object => UploadedFile.new)) | ||
| 15 | - end | 13 | + button_to_function :add, name, ("jQuery('#uploaded_files').append(jQuery('#uploaded_files>p').last().clone())") |
| 16 | end | 14 | end |
| 17 | 15 | ||
| 18 | def pagination_links(collection, options={}) | 16 | def pagination_links(collection, options={}) |