Commit 606da84ccbae7e4f56042828b4647197ef6c602e
Committed by
Rodrigo Souto
1 parent
ee0b6299
Exists in
master
and in
29 other branches
Small enhancements
(ActionItem1970)
Showing
2 changed files
with
5 additions
and
7 deletions
Show diff stats
plugins/shopping_cart/views/cart.html.erb
... | ... | @@ -17,6 +17,6 @@ |
17 | 17 | </div> |
18 | 18 | </div> |
19 | 19 | |
20 | -<script type="text/javascript"> | |
20 | +<% javascript_tag do %> | |
21 | 21 | new Cart({hasProducts:<%= !locals[:cart].nil? ? "true, enterprise:'#{Enterprise.find(locals[:cart][:enterprise_id]).identifier}'" : "false" %>}); |
22 | -</script> | |
22 | +<% end %> | ... | ... |
plugins/shopping_cart/views/shopping_cart_plugin_profile/buy.html.erb
... | ... | @@ -15,16 +15,14 @@ |
15 | 15 | <%= labelled_form_field(_('ZIP code'), f.text_field(:zip_code)) %> |
16 | 16 | </fieldset> |
17 | 17 | <div id="cart-form-actions"> |
18 | - <%= tag 'input', :class => 'submit button with-text icon-send', | |
19 | - :value => _('Send buy request'), | |
20 | - :type => 'submit'%> | |
18 | + <%= submit_button(:send, _('Send buy request')) %> | |
21 | 19 | </div> |
22 | 20 | <% end %> |
23 | 21 | <%= items_table(session[:cart][:items]) %> |
24 | 22 | </div> |
25 | 23 | |
26 | -<script> | |
24 | +<% javascript_tag do %> | |
27 | 25 | jQuery(document).ready(function(){ |
28 | 26 | jQuery("#cart-request-form").validate(); |
29 | 27 | }); |
30 | -</script> | |
28 | +<% end %> | ... | ... |