HTML code can be modify (paser: update)

This commit is contained in:
chris2tof committed 2011-06-10 10:31:50 +08:00
1 parent dda4b30d67
commit 247b8ec4dc
12 files changed
+127 -13

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
$('#sidebar').html("<%= escape_javascript(render(:partial => 'admin/items/site_map_left_bar')) %>");
$('#main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
$('#main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
history.pushState(null, document.title, "<%= escape_javascript(admin_link_url(@item)) %>");
@@ -0,0 +1,8 @@
<%= flash_messages %>
<%= form_for @item, :url => admin_page_path(@item), :html => { :class => 'form' } do |f| %>
<%= render :partial => "admin/pages/form_code", :locals => { :f => f, :locale => locale } %>
<p>
<%= f.submit t(:update) %> <%= link_back %>
</p>
<% end %>
@@ -0,0 +1,3 @@
<%= f.error_messages %>
<%= f.text_area :content %>
+2 -1
View File
@@ -1,2 +1,3 @@
$('#sidebar').html("<%= escape_javascript(render(:partial => 'admin/items/site_map_left_bar')) %>");
$('#main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
$('#main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
+1
View File
@@ -0,0 +1 @@
$('#main').html("<%= escape_javascript(render(:partial => @code ? 'edit_code' : 'edit')) %>");
+1 -1
View File
@@ -1 +1 @@
<%= render 'show' %>
<%= render @code ? 'show_code' : 'show' %>
+2
View File
@@ -0,0 +1,2 @@
$('#main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");