Authored by 周少峰

Merge branch 'hotfix/hotSearch'

@@ -138,10 +138,10 @@ function scrollToFirst() { @@ -138,10 +138,10 @@ function scrollToFirst() {
138 138
139 if ($selected.length > 0) { 139 if ($selected.length > 0) {
140 $selected = $selected.eq(0); 140 $selected = $selected.eq(0);
  141 + top = $selected.offset().top - 36;
  142 + $('html,body').scrollTop(top);
141 } 143 }
142 144
143 - top = $selected.offset().top - 36;  
144 - $('html,body').scrollTop(top);  
145 return false; 145 return false;
146 } 146 }
147 function isCheck(obj, className) { 147 function isCheck(obj, className) {
@@ -948,7 +948,7 @@ function actionAddKeyWords() { @@ -948,7 +948,7 @@ function actionAddKeyWords() {
948 $querykey.css({ 948 $querykey.css({
949 color: '#e0e0e0' 949 color: '#e0e0e0'
950 }); 950 });
951 - $querykey.val(defaultsearch); 951 + $querykey.val(defaultsearch).blur();
952 $querykey.on('focus', function(e) { 952 $querykey.on('focus', function(e) {
953 $querykey.css({ 953 $querykey.css({
954 color: '#000' 954 color: '#000'