Reformat transfer.js.erb
This commit is contained in:
parent
0ea29d131f
commit
12f61b490a
1 changed files with 10 additions and 7 deletions
|
@ -1,11 +1,14 @@
|
|||
<%- if response.status == 404 %>
|
||||
transfer_errors_message(true);
|
||||
<%- else %>
|
||||
<% flash.each do |type, message| %>
|
||||
<% flash.each do |type, message| %>
|
||||
$("#flash_message").html("<div class=\"alert alert-success\"> <%= message.html_safe %></div>")
|
||||
<% end %>
|
||||
<% flash.clear %>
|
||||
transfer_errors_message(false);
|
||||
$("#email_admin").val('');
|
||||
$("button#cancel").click();
|
||||
<%- end %>
|
||||
<% end %>
|
||||
|
||||
<% flash.clear %>
|
||||
|
||||
transfer_errors_message(false);
|
||||
|
||||
$("#email_admin").val('');
|
||||
$("button#cancel").click();
|
||||
<%- end %>
|
||||
|
|
Loading…
Reference in a new issue