From 8ebe9abdfe18ff14363d27ec5f880d13d0693678 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Thu, 29 Nov 2012 15:18:38 +0800 Subject: [PATCH] remove edit page cancel buttom --- app/views/desktop/journal_pages/_form.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/desktop/journal_pages/_form.html.erb b/app/views/desktop/journal_pages/_form.html.erb index 8645318b..ba51c3a2 100644 --- a/app/views/desktop/journal_pages/_form.html.erb +++ b/app/views/desktop/journal_pages/_form.html.erb @@ -2,7 +2,9 @@
<%= f.submit "Save", name: "commit", value: "Save", class: "fn_btn hh2 thmc2 thmtxt" %> - <%= submit_tag "Cancel", :type => "button", class: "bt-cancel fn_btn hh2 thmc2 thmtxt" %> + <% if not @writing_journal.new_record? %> + <%= submit_tag "Cancel", :type => "button", class: "bt-cancel fn_btn hh2 thmc2 thmtxt" %> + <% end %>
Entry Year
@@ -215,7 +217,7 @@
  • - <%= f.text_area :note, size: "20x2", plcaeholder: "Note", class: "s_grid_6 s_grid"%> + <%= f.text_area :note, size: "20x2", placeholder: "Note", class: "s_grid_6 s_grid"%>
  • @@ -248,8 +250,6 @@ }); }); - - $('.action a.remove_existing_record').click(function(){ $(this).next('.should_destroy').attr('value', 1); $("tr#add_plugin_file_" + $(this).prev().attr('value')).hide();