...
|
...
|
@@ -16,8 +16,9 @@ var $nav = $('.category-nav'), |
|
|
require('../common');
|
|
|
|
|
|
function resetHeight() {
|
|
|
var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight();
|
|
|
$contents.height(h);
|
|
|
var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight();
|
|
|
|
|
|
$contents.height(h);
|
|
|
}
|
|
|
resetHeight();
|
|
|
|
...
|
...
|
@@ -73,7 +74,7 @@ $categoryContainer.on('touchend', function(e) { |
|
|
$subLevel.eq(index).removeClass('hide');
|
|
|
}
|
|
|
|
|
|
if ($this.find('a').attr('href')) {
|
|
|
if ($this[0] && $this[0].tagName === 'LI' && $this.find('a').attr('href')) {
|
|
|
location.href = $this.find('a').attr('href');
|
|
|
}
|
|
|
});
|
...
|
...
|
|