Changeset 23454


Ignore:
Timestamp:
2014/05/28 04:33:32 (10 years ago)
Author:
Seasoft
Message:

#2157 (Windows8対応)

  • タブレットのクリック不具合を回避する。(未検証)
File:
1 edited

Legend:

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

    r23453 r23454  
    358358    eccube.navi = {}; 
    359359 
     360    // メニューを閉じないフラグ 
     361    eccube.navi.not_close = false; 
     362 
    360363    eccube.navi.openMenu = function($target) { 
    361364        $target 
     
    368371    }; 
    369372 
     373    eccube.navi.setNotClose = function(milliseconds) { 
     374        if (milliseconds = null) milliseconds = 100; 
     375        eccube.navi.not_close = true; 
     376        setTimeout(function(){eccube.navi.not_close = false;}, milliseconds); 
     377    } 
     378 
    370379    // グローバルに使用できるようにする 
    371380    window.eccube = eccube; 
     
    378387        // ヘッダナビゲーション 
    379388        $("#navi").find("div").click(function(){ 
     389            // タブレットでの二重イベント発生を回避 
     390            if (eccube.navi.not_close) return false; 
     391 
    380392            naviClicked = true; 
    381393            $("#navi").addClass('active'); 
     
    394406            if ($("#navi").hasClass('active')) { 
    395407                eccube.navi.openMenu($(this)); 
     408                eccube.navi.setNotClose(); 
    396409            } 
    397410        }); 
Note: See TracChangeset for help on using the changeset viewer.