Fix remote upload file for tinymce

This commit is contained in:
Christophe Vilayphiou 2012-08-06 15:13:21 +08:00
parent 73b2cd1035
commit 9a103bbb7e
3 changed files with 4 additions and 3 deletions

View File

@ -26,6 +26,7 @@ gem 'mysql2'
gem 'nokogiri'
gem 'radius'
gem 'rake'
gem 'remotipart'
gem 'resque' # background jobs
gem 'resque-scheduler' # job scheduling
gem 'resque-restriction'

View File

@ -17,4 +17,4 @@
//= require side_bar_history
//= require rss
//= require ajax_form
//= require inc/ajax_setting
//= require jquery.remotipart

View File

@ -3,7 +3,7 @@
<%= flash_messages %>
<%= form_for :asset, :url => admin_assets_path(:uploader => true), :html => {:id => 'ajaxForm', :multipart => true } do |f| %>
<%= form_for :asset, :url => admin_assets_path(:uploader => true), :remote => true do |f| %>
<div class="modal-header">
<h3><%= t 'admin.file_upload' %></h3>
</div>
@ -51,7 +51,7 @@
</div>
<div style="position: absolute; width: 100%; bottom: 0;">
<div class="modal-footer">
<a id='ajax_form_submit' class="btn btn-primary"><%= t(:create) %></a>
<%= f.submit t(:create), :class => "btn btn-primary" %>
</div>
</div>