1var BBR = {} 2 3BBR.init = function(){ 4 BBR.listeners(); 5} 6 7BBR.listeners = function(){ 8 $('.add-to-cart').click(BBR.addToCart) 9 $('.mini-delete').click(BBR.deleteCartItem); 10 $('#submitContactForm').click(BBR.submitContactForm) 11} 12 13BBR.addToCart = function(){ 14 var id = $(this).data('id'); 15 16 $.get('/pajax/cart/addToCart', {id: id}, function(orderItemId){ 17 if(parseInt(orderItemId) > 0){ 18 document.location = '/cart' 19 } 20 }) 21} 22 23BBR.deleteCartItem = function(){ 24 var id = $(this).data('id'); 25 $.getJSON( '/json/orders/orderItems/delete', { orderItemId: id }, function(){ 26 location.reload(); 27 }); 28} 29 30BBR.submitContactForm = function(){ 31 if($('#contactForm').kendoValidator().data('kendoValidator').validate()){ 32 $.post('/pajax/default/submitContactForm', $('#contactForm').serialize(), function(){ 33 Utils.alert().ok(function(){ 34 document.location = '/contact' 35 }).show('Thank You', 'Your enquiry has been submitted') 36 }) 37 } 38} 39 40$(function(){ 41 BBR.init(); 42})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.