AAAAhome/academiac/www/plugins/vmpayment/klarna/klarna/assets/js/klarna_pp.js000060400000001414151375537350022665 0ustar00 jQuery(function () { // unbind click to prevent duplicate click functions in case of more // than one pp box jQuery('.klarna_PPBox_pull,.klarna_PPBox_top').unbind('click'); jQuery('.klarna_PPBox_pull,.klarna_PPBox_top').click(function () { var kParent = jQuery(this).closest('.klarna_PPBox'); var kBottom = kParent.find('.klarna_PPBox_bottom'); if (kBottom.is(':visible')) { kBottom.slideUp('fast'); kParent.find('#klarna_PPBox_pullUp').fadeOut('fast'); kParent.find('#klarna_PPBox_pullDown').show(); } else { kBottom.slideDown('fast'); kParent.find('#klarna_PPBox_pullUp').fadeIn('fast'); kParent.find('#klarna_PPBox_pullDown').hide(); } }); });