add gender nav for brand page. code review by XWG
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -179,9 +179,9 @@ if ($('.brand-search-page').length) { | @@ -179,9 +179,9 @@ if ($('.brand-search-page').length) { | ||
179 | 179 | ||
180 | } | 180 | } |
181 | 181 | ||
182 | -if($genderItem.length > 0) { | ||
183 | - $genderItem.on('touchstart', function(){ | 182 | +if ($genderItem.length > 0) { |
183 | + $genderItem.on('touchstart', function() { | ||
184 | $('.genderNav ul .active').removeClass('active'); | 184 | $('.genderNav ul .active').removeClass('active'); |
185 | $(this).addClass('active'); | 185 | $(this).addClass('active'); |
186 | - }) | 186 | + }); |
187 | } | 187 | } |
-
Please register or login to post a comment