2016-09-10 7 views

答えて

1

置き換え

CatalinSeoHandler.bindPriceSlider(); 

var bindPriceSliderStop = false; 
    if(window.innerWidth < 770) { 
     jQuery('body').on('click', '.block-layered-nav .block-content.accordion-open > dl > dt.current', function(){ 
      if(jQuery('.current .price-slider').length && !bindPriceSliderStop){ 
       CatalinSeoHandler.bindPriceSlider(); 
       bindPriceSliderStop = true; 
      } 
     }); 
    }else{ 
     CatalinSeoHandler.bindPriceSlider(); 
    } 

    jQuery(window).on("orientationchange",function(event){ 
     if(window.innerWidth > 770) { 
      catalinSeoHandlerMobile();    
     }else{ 
      jQuery('body').on('click', '.block-layered-nav .block-content.accordion-open > dl > dt.current', function(){ 
       if(jQuery('.current .price-slider').length){ 
        catalinSeoHandlerMobile(); 
       } 
      }); 
      if(jQuery('.current .price-slider').length){ 
       catalinSeoHandlerMobile(); 
      } 
     } 
    }); 

    function catalinSeoHandlerMobile(){ 
     CatalinSeoHandler.priceSlider.currentMinPrice = parseFloat(jQuery('#price-min-display').text()); 
     CatalinSeoHandler.priceSlider.currentMaxPrice = parseFloat(jQuery('#price-max-display').text()); 
     CatalinSeoHandler.bindPriceSlider(); 
    } 
付き

別の問題があります。価格スライダーはモバイルタッチイベントをサポートしていません。あなたはこの問題を解決したい場合は、私ができるこの

http://dev.amnuts.com/slider/js/slider.js

+0

"JS/Scriptaculousの/ slider.js"

標準Magentoのスライダーのjsファイルを置き換えますこれが機能していることを確認してください。ありがとう! –

関連する問題