Ignore:
Timestamp:
2014/05/23 18:49:10 (12 years ago)
Author:
pineray
Message:

#2157 Windows8対応

管理画面のナビゲーションを、マウスオーバーではなくクリックで開くように変更.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/html/user_data/packages/admin/js/eccube.admin.js

    r23381 r23441  
    364364    $(function() { 
    365365        // ヘッダナビゲーション 
    366         $("#navi").find("li").hover( 
    367             function(){ 
    368                 $(this).addClass("sfhover"); 
    369             }, 
    370             function(){ 
    371                 $(this).removeClass("sfhover"); 
    372             } 
    373         ); 
     366        $("#navi").find("div").click(function(){ 
     367            var parent = $(this).parent('li'); 
     368            if (parent.hasClass('sfhover')) { 
     369                parent 
     370                    .removeClass('sfhover') 
     371                    .find('li').removeClass('sfhover'); 
     372            } else { 
     373                parent 
     374                    .addClass('sfhover') 
     375                    .siblings('li') 
     376                        .removeClass('sfhover') 
     377                        .find('li').removeClass('sfhover'); 
     378            } 
     379        }); 
    374380    }); 
    375381})(window); 
Note: See TracChangeset for help on using the changeset viewer.