1/** 2 * @file 3 * Adds effects and behaviors to the cart block. 4 */ 5 6/** 7 * Sets the behavior to (un)collapse the cart block on a click 8 */ 9Drupal.behaviors.ucCollapseBlock = { 10 attach: function(context) { 11 jQuery('.cart-block-title-bar:not(.ucCollapseBlock-processed)', context).addClass('ucCollapseBlock-processed').click( 12 function() { 13 var $items = jQuery('.cart-block-items').toggleClass('collapsed'); 14 jQuery('.cart-block-arrow').toggleClass('arrow-down', $items.hasClass('collapsed')); 15 } 16 ); 17 } 18}
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.