Changeset 23454
- Timestamp:
- 2014/05/28 04:33:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/html/user_data/packages/admin/js/eccube.admin.js
r23453 r23454 358 358 eccube.navi = {}; 359 359 360 // メニューを閉じないフラグ 361 eccube.navi.not_close = false; 362 360 363 eccube.navi.openMenu = function($target) { 361 364 $target … … 368 371 }; 369 372 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 370 379 // グローバルに使用できるようにする 371 380 window.eccube = eccube; … … 378 387 // ヘッダナビゲーション 379 388 $("#navi").find("div").click(function(){ 389 // タブレットでの二重イベント発生を回避 390 if (eccube.navi.not_close) return false; 391 380 392 naviClicked = true; 381 393 $("#navi").addClass('active'); … … 394 406 if ($("#navi").hasClass('active')) { 395 407 eccube.navi.openMenu($(this)); 408 eccube.navi.setNotClose(); 396 409 } 397 410 });
Note: See TracChangeset
for help on using the changeset viewer.