...
|
...
|
@@ -11,8 +11,8 @@ var $nav = $('.category-nav'), |
|
|
$search = $('#search-input'),
|
|
|
$categoryContainer = $('.category-container'),
|
|
|
$contents = $categoryContainer.children('.content'),
|
|
|
$subLevelItem = $categoryContainer.find('.sub-level li'),
|
|
|
$primaryItem = $categoryContainer.find('.primary-level li');
|
|
|
$subLevelItem = $categoryContainer.find('.sub-level li');
|
|
|
// $primaryItem = $categoryContainer.find('.primary-level li');
|
|
|
|
|
|
require('../common');
|
|
|
|
...
|
...
|
@@ -91,12 +91,12 @@ $categoryContainer.on('click', function(e) { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$categoryContainer.find('.primary-level').on('touchstart touchend touchcancel', 'li', function() {
|
|
|
$primaryItem.removeClass('highlight');
|
|
|
$(this).addClass('highlight');
|
|
|
}).on('touchend touchcancel', 'li', function() {
|
|
|
$(this).removeClass('highlight');
|
|
|
});
|
|
|
// $categoryContainer.find('.primary-level').on('touchstart touchend touchcancel', 'li', function() {
|
|
|
// $primaryItem.removeClass('highlight');
|
|
|
// $(this).addClass('highlight');
|
|
|
// }).on('touchend touchcancel', 'li', function() {
|
|
|
// $(this).removeClass('highlight');
|
|
|
// });
|
|
|
|
|
|
$categoryContainer.find('.sub-level').on('touchstart', 'li', function() {
|
|
|
$subLevelItem.removeClass('highlight');
|
...
|
...
|
|