app/assets/javascripts/shopping/cart.js
Function initialize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize : function() {
jQuery('#submit_add_to_cart').click( function() {
if (jQuery('#cart_item_variant_id').val() == '' ) { // Select to see if variant is selected in hidden field
alert('Please click on a specific item to add.');
} else