Commit 71bb0aab21376e0908f2381ba626cf2aaad506cb

Authored by Rodrigo Souto
1 parent f71c2edb

[purchase-order] Removing confirmation after change order state

plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb
... ... @@ -22,8 +22,7 @@
22 22 hidden_field_tag(:context_to, @to) +
23 23 hidden_field_tag(:context_status, @status) +
24 24 select_tag( :order_status, options_from_collection_for_select(status_collection, :first, :last, order.status),
25   - :onchange => "if(confirm(#{_('Are you sure about changing this order status?').to_json}))" +
26   - " this.form.submit(); else this.selectedIndex = #{order.status}" )
  25 + :onchange => "this.form.submit()" )
27 26 %>
28 27 <% end %>
29 28 </td>
... ...