From 71bb0aab21376e0908f2381ba626cf2aaad506cb Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 22 Sep 2011 12:31:53 -0300 Subject: [PATCH] [purchase-order] Removing confirmation after change order state --- plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb index 6524afd..125f22f 100644 --- a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb +++ b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb @@ -22,8 +22,7 @@ hidden_field_tag(:context_to, @to) + hidden_field_tag(:context_status, @status) + select_tag( :order_status, options_from_collection_for_select(status_collection, :first, :last, order.status), - :onchange => "if(confirm(#{_('Are you sure about changing this order status?').to_json}))" + - " this.form.submit(); else this.selectedIndex = #{order.status}" ) + :onchange => "this.form.submit()" ) %> <% end %> -- libgit2 0.21.2