Sha256: 033e3295c22b419c39a45642af5ebbe0da508a741d2122240c0a851883f70957
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
<%= javascript_include_tag 'http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js' %> <script type="text/javascript"> $(function() { var cp_wrapper = $('#comparable_products_wrapper').detach(); $('#tooltip_content').append(cp_wrapper); jtooltip = $('#compare_products').tooltip({ position: 'bottom center', events: { def: 'none,none' }, delay: 200000 }).data('tooltip'); $('#compare_products').click(function(e) { if (jtooltip.isShown()) { hideComparePopup(); } else { showComparePopup(); } e.preventDefault(); }); $("#compare_products").html("<%= t(:compare_products, :scope => :compare_products, :count => @comparable_products.count) %>"); $("#compare_products_link a").addClass('button'); $("#log_in_link").overlay({ mask: { color: 'black', opacity: 0.3 } }); }); function showComparePopup() { jtooltip.show(); $("#compare_products").addClass('shown'); } function hideComparePopup() { jtooltip.hide(); $("#compare_products").removeClass('shown'); } function onAddCompareProduct() { showComparePopup(); } function onRemoveCompareProduct() { showComparePopup(); } </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
synergy_default_theme-1.0.0 | app/views/shared/_synergy_compare_products_js.html.erb |