remove edit page cancel buttom

This commit is contained in:
Rueshyna 2012-11-29 15:18:38 +08:00 committed by chris
parent d70ef4666b
commit 6426fb74d9
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,9 @@
<div class="fn_g hp">
<%= f.submit "Save", name: "commit", value: "Save", class: "fn_btn hh2 thmc2 thmtxt" %>
<!-- class: bt-cancle can't be remove -->
<%= 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 %>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Entry Year</div>
@ -215,7 +217,7 @@
</div>
<div class="s_grid_con s_form">
<li class="s_grid_row">
<%= 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"%>
</li>
</ul>
</div>
@ -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();