...
|
...
|
@@ -32,9 +32,15 @@ var navHammer; |
|
|
$('#search-input').focus(function() {
|
|
|
$(this).blur();
|
|
|
});
|
|
|
$nav.bind('contextmenu', function(e) {
|
|
|
return false;
|
|
|
});
|
|
|
$('.category-container').bind('contextmenu', function(e) {
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
navHammer = new Hammer($nav[0]);
|
|
|
navHammer.on('tap', function(e) {
|
|
|
navHammer.on('tap pressup', function(e) {
|
|
|
var $this = $(e.target).closest('li'),
|
|
|
index = $this.index();
|
|
|
|
...
|
...
|
@@ -71,7 +77,7 @@ $categoryContainer.on('touchend', function(e) { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$categoryContainer.find('.primary-level').on('touchstart', 'li', function() {
|
|
|
$categoryContainer.find('.primary-level').on('touchstart touchend touchcancel', 'li', function() {
|
|
|
$primaryItem.removeClass('highlight');
|
|
|
$(this).addClass('highlight');
|
|
|
}).on('touchend touchcancel', 'li', function() {
|
...
|
...
|
@@ -84,3 +90,11 @@ $categoryContainer.find('.sub-level').on('touchstart', 'li', function() { |
|
|
}).on('touchend touchcancel', 'li', function() {
|
|
|
$(this).removeClass('highlight');
|
|
|
});
|
|
|
|
|
|
$nav.on('touchstart', function(e) {
|
|
|
var target = e.target || e.srcElement;
|
|
|
|
|
|
target.parentNode.className = 'bytouch ' + target.parentNode.className;
|
|
|
}).on('touchend touchcancel', function() {
|
|
|
$nav.find('li').removeClass('bytouch');
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|