preview for update
This commit is contained in:
parent
6044857fea
commit
a20db344f1
|
@ -33,6 +33,7 @@ $(document).ready(function() {
|
||||||
$("#main-wrap").after("<span id='show_preview'></span>");
|
$("#main-wrap").after("<span id='show_preview'></span>");
|
||||||
o.dataType = 'script';
|
o.dataType = 'script';
|
||||||
o.url = clicked_what.attr("url");
|
o.url = clicked_what.attr("url");
|
||||||
|
o.type = 'post';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<li class="text-blue"><%= t('announcement.editing_announcement') %></li>
|
<li class="text-blue"><%= t('announcement.editing_announcement') %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
<%= form_for @bulletin, :url => panel_announcement_back_end_bulletin_path(@bulletin), :html => {:class => 'clear'} do |f| %>
|
<%= form_for @bulletin, :url => panel_announcement_back_end_bulletin_path(@bulletin), :html => {:class => 'clear nccu_ajax_form'} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,6 +16,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
collection do
|
collection do
|
||||||
post "preview"
|
post "preview"
|
||||||
|
put "preview"
|
||||||
get 'delete'
|
get 'delete'
|
||||||
end
|
end
|
||||||
match "file_quick_add/:bulletin_id" => "bulletins#file_quick_add" ,:as => :file_quick_add
|
match "file_quick_add/:bulletin_id" => "bulletins#file_quick_add" ,:as => :file_quick_add
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<li class="text-blue"><%= t('news.editing_news') %></li>
|
<li class="text-blue"><%= t('news.editing_news') %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
<%= form_for @news_bulletin, :url => panel_news_back_end_news_bulletin_path(@news_bulletin), :html => {:class => 'clear'} do |f| %>
|
<%= form_for @news_bulletin, :url => panel_news_back_end_news_bulletin_path(@news_bulletin), :html => {:class => 'clear nccu_ajax_form'} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,6 +17,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
collection do
|
collection do
|
||||||
post "preview"
|
post "preview"
|
||||||
|
put "preview"
|
||||||
get 'delete'
|
get 'delete'
|
||||||
end
|
end
|
||||||
match "file_quick_add/:news_bulletin_id" => "news_bulletins#file_quick_add" ,:as => :file_quick_add
|
match "file_quick_add/:news_bulletin_id" => "news_bulletins#file_quick_add" ,:as => :file_quick_add
|
||||||
|
|
Loading…
Reference in New Issue