cirandas.net

ref: master

plugins/orders_cycle/views/orders_cycle_plugin_cycle/edit.js.erb


<% if params[:commit] %>
  <% if @success and @open %>
    window.location = <%= url_for(action: :edit, id: @cycle.id).to_json %>
  <% else %>
    noosfero.modal.html(<%= render('edit_popin', cycle: @cycle).to_json %>)
  <% end %>
<% else %>
  jQuery("#cycle-products .table").replaceWith('<%= escape_javascript render('product_lines') %>')
<% end %>