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