...
|
...
|
@@ -14,16 +14,17 @@ var $nav = $('.category-nav'), |
|
|
|
|
|
require('../common');
|
|
|
|
|
|
(function() {
|
|
|
function resetHeight() {
|
|
|
var $header = $('.yoho-header'),
|
|
|
$search = $('#search-input');
|
|
|
|
|
|
var h = $(window).height() - $header.outerHeight() - $search.outerHeight() - $nav.outerHeight();
|
|
|
var h = document.body.scrollHeight - $header.outerHeight() - $search.outerHeight() - $nav.outerHeight();
|
|
|
|
|
|
$categoryContainer.css('min-height', h);
|
|
|
|
|
|
$contents.height(h);
|
|
|
}());
|
|
|
}
|
|
|
resetHeight();
|
|
|
|
|
|
$('#search-input').focus(function() {
|
|
|
$(this).blur();
|
...
|
...
|
@@ -39,6 +40,7 @@ $nav.on('touchend touchcancel', function(e) { |
|
|
var $this = $(e.target).closest('li'),
|
|
|
selector = '.' + $this.data('channel');
|
|
|
|
|
|
resetHeight();
|
|
|
if ($this.hasClass('focus')) {
|
|
|
return;
|
|
|
}
|
...
|
...
|
|