...
|
...
|
@@ -729,9 +729,31 @@ $listNav.bind('contextmenu', function(e) { |
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$newList.on('touchstart', 'li', function() {
|
|
|
function newListHide() {
|
|
|
var $firstLi = $('ul.pos-list').find('li.first-li-more');
|
|
|
|
|
|
if ($newList.hasClass('hide')) {
|
|
|
$firstLi.find('span.up').addClass('hide');
|
|
|
$firstLi.find('span.down').removeClass('hide');
|
|
|
} else {
|
|
|
$firstLi.find('span.down').addClass('hide');
|
|
|
$firstLi.find('span.up').removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$newList.on('touchstart', 'li', function(e) {
|
|
|
e.preventDefault();
|
|
|
$(this).closest('.new-list').addClass('hide');
|
|
|
$(this).addClass('active').siblings().removeClass('active');
|
|
|
$('ul.pos-list').find('li.first-li-more').addClass('active').siblings().removeClass('active');
|
|
|
newListHide();
|
|
|
});
|
|
|
|
|
|
$(document).on('touchstart', function(e) {
|
|
|
if (!$newList.hasClass('hide') &&
|
|
|
$(e.target).closest('.new-list, li.first-li-more').length <= 0) {
|
|
|
$newList.addClass('hide');
|
|
|
newListHide();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$subNav.on('touchend touchcancel', function(e) {
|
...
|
...
|
@@ -744,8 +766,11 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
if ($this.hasClass('new')) {
|
|
|
if ($this.hasClass('first-li-more')) {
|
|
|
filter.hideFilter();
|
|
|
$newList.removeClass('hide');
|
|
|
$this.addClass('active').siblings().removeClass('active');
|
|
|
newListHide();
|
|
|
return true;
|
|
|
}
|
|
|
|
...
|
...
|
|