Sha256: 06bde77a68b62b5101e675227a0debcc68ac4e292be68baa2b1423c340cd8181

Contents?: true

Size: 433 Bytes

Versions: 9

Compression:

Stored size: 433 Bytes

Contents

var $offer = $('#offer_<%= @offer.id %>_body');
<% if resource.errors.any? %>
$('form .errors', $offer).html("<%= escape_javascript(resource_error_messages!) %>");
<% else %>
  <% if @offer.kind_of?(SubscriptionOffer) %>
$('form .errors', $offer).html("");
$('form .notice', $offer).html("<%= escape_javascript(@offer.success_alert_text) %>");
  <% else %>
window.location = "<%= public_offer_path(@offer) %>";
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
e9_crm-0.1.18 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.17 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.16 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.14 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.13 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.12 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.11 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.10 app/views/e9_crm/leads/create.js.erb
e9_crm-0.1.8 app/views/e9_crm/leads/create.js.erb