Commit 82653b8012f3ad1bf1b232a4fb979754b7ee477c

Authored by Daniela Feitosa
Committed by Rodrigo Souto
1 parent 606da84c

Replaced javascript_tag by tag script

plugins/shopping_cart/views/cart.html.erb
... ... @@ -17,6 +17,8 @@
17 17 </div>
18 18 </div>
19 19  
20   -<% javascript_tag do %>
  20 +<script type="text/javascript">
  21 +//<![CDATA[
21 22 new Cart({hasProducts:<%= !locals[:cart].nil? ? "true, enterprise:'#{Enterprise.find(locals[:cart][:enterprise_id]).identifier}'" : "false" %>});
22   -<% end %>
  23 +//]]>
  24 +</script>
... ...
plugins/shopping_cart/views/shopping_cart_plugin_profile/buy.html.erb
... ... @@ -21,8 +21,10 @@
21 21 <%= items_table(session[:cart][:items]) %>
22 22 </div>
23 23  
24   -<% javascript_tag do %>
  24 +<script type="text/javascript">
  25 +//<![CDATA[
25 26 jQuery(document).ready(function(){
26 27 jQuery("#cart-request-form").validate();
27 28 });
28   -<% end %>
  29 +//]]>
  30 +</script>
... ...