|
@@ -17,8 +17,6 @@ var $icon = $('.search-icon'); |
|
@@ -17,8 +17,6 @@ var $icon = $('.search-icon'); |
17
|
var searchH = $('.newbrand-search').outerHeight(),
|
17
|
var searchH = $('.newbrand-search').outerHeight(),
|
18
|
headerH = $('.yoho-header').outerHeight(),
|
18
|
headerH = $('.yoho-header').outerHeight(),
|
19
|
brandSwipe = parseInt(searchH) + parseInt(headerH) - 1,
|
19
|
brandSwipe = parseInt(searchH) + parseInt(headerH) - 1,
|
20
|
- minBrandListTop,
|
|
|
21
|
- searchArray = [],
|
|
|
22
|
minBrandListTop;
|
20
|
minBrandListTop;
|
23
|
|
21
|
|
24
|
var brandsData,
|
22
|
var brandsData,
|
|
@@ -119,7 +117,6 @@ if ($('.brand-search-page').length) { |
|
@@ -119,7 +117,6 @@ if ($('.brand-search-page').length) { |
119
|
$keyword = $('#keyword');
|
117
|
$keyword = $('#keyword');
|
120
|
|
118
|
|
121
|
$keyword.on('input', function() {
|
119
|
$keyword.on('input', function() {
|
122
|
- $('.history').css('display', 'none');
|
|
|
123
|
if ($keyword.val().length) {
|
120
|
if ($keyword.val().length) {
|
124
|
searchResult();
|
121
|
searchResult();
|
125
|
$icon.css('color', '#000');
|
122
|
$icon.css('color', '#000');
|
|
@@ -135,6 +132,7 @@ if ($('.brand-search-page').length) { |
|
@@ -135,6 +132,7 @@ if ($('.brand-search-page').length) { |
135
|
clearTextHammer = new Hammer($('.clear-text')[0]);
|
132
|
clearTextHammer = new Hammer($('.clear-text')[0]);
|
136
|
clearTextHammer.on('tap', function(e) {
|
133
|
clearTextHammer.on('tap', function(e) {
|
137
|
e.preventDefault();
|
134
|
e.preventDefault();
|
|
|
135
|
+ $('.search-result').html('');
|
138
|
$('#keyword').val('').trigger('input');
|
136
|
$('#keyword').val('').trigger('input');
|
139
|
e.srcEvent.stopPropagation();
|
137
|
e.srcEvent.stopPropagation();
|
140
|
});
|
138
|
});
|
|
@@ -142,4 +140,5 @@ if ($('.brand-search-page').length) { |
|
@@ -142,4 +140,5 @@ if ($('.brand-search-page').length) { |
142
|
$('form.search-box').on('submit', function() {
|
140
|
$('form.search-box').on('submit', function() {
|
143
|
return false;
|
141
|
return false;
|
144
|
});
|
142
|
});
|
|
|
143
|
+
|
145
|
} |
144
|
} |