Revert useless changes
This commit is contained in:
parent
4660c26b7a
commit
cd4c9306da
|
@ -128,11 +128,11 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
|
||||||
|
|
||||||
@bulletin_file = BulletinFile.new(params[:bulletin_file])
|
@bulletin_file = BulletinFile.new(params[:bulletin_file])
|
||||||
|
|
||||||
# respond_to do |format|
|
respond_to do |format|
|
||||||
if @bulletin_file.save
|
if @bulletin_file.save
|
||||||
render 'create_bulletin_file',:layout=>false
|
format.js { render 'create_bulletin_file' }
|
||||||
end
|
end
|
||||||
# end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['en'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description_translations['en']} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
<td><%= list_bulletin_file.file.file ? ( link_to list_bulletin_file.title_translations['en'], list_bulletin_file.file.url, {:target => '_blank', :title => list_bulletin_file.description_translations['en']} ) : list_bulletin_file.title_translations['zh_tw'] %></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<%= panel_announcement_back_end_bulletin_file_quick_edit_path(list_bulletin_file) %>#modal-file" data-toggle="modal" data-remote="true" class="action"><i class="icon-pencil"></i></a>
|
<a href="<%= panel_announcement_back_end_bulletin_file_quick_edit_path(list_bulletin_file) %>#modal-file" data-toggle="modal" data-remote="true" class="action"><i class="icon-pencil"></i></a>
|
||||||
<span class="action" for="<%= dom_id list_bulletin_file %>">
|
<span class="action">
|
||||||
<%= fields_for "bulletin[bulletin_files_attributes][]", list_bulletin_file, :index => list_bulletin_file_counter do |f| %>
|
<%= fields_for "bulletin[bulletin_files_attributes][]", list_bulletin_file, :index => list_bulletin_file_counter do |f| %>
|
||||||
<%= f.hidden_field :id %>
|
<%= f.hidden_field :id %>
|
||||||
<%= hidden_field_tag :tr, (dom_id list_bulletin_file) %>
|
<%= hidden_field_tag :tr, (dom_id list_bulletin_file) %>
|
||||||
|
|
Reference in New Issue