...
|
...
|
@@ -8,7 +8,6 @@ var $ = require('yoho-jquery'); |
|
|
var FastClick = require('yoho-fastclick');
|
|
|
|
|
|
var $nav = $('.category-nav'),
|
|
|
$search = $('#search-input'),
|
|
|
$categoryContainer = $('.category-container'),
|
|
|
$contents = $categoryContainer.children('.content'),
|
|
|
$subLevelItem = $categoryContainer.find('.sub-level li');
|
...
|
...
|
@@ -18,15 +17,12 @@ $(function() { |
|
|
});
|
|
|
|
|
|
function resetHeight() {
|
|
|
var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight();
|
|
|
var h = document.body.scrollHeight - $nav.outerHeight();
|
|
|
|
|
|
$contents.height(h);
|
|
|
}
|
|
|
resetHeight();
|
|
|
|
|
|
$search.focus(function() {
|
|
|
$(this).blur();
|
|
|
});
|
|
|
$nav.on('contextmenu', function() {
|
|
|
return false;
|
|
|
});
|
...
|
...
|
|