code review by liangzhifeng
Showing
2 changed files
with
6 additions
and
2 deletions
@@ -19,9 +19,9 @@ myImage.onload = function() { | @@ -19,9 +19,9 @@ myImage.onload = function() { | ||
19 | $userAvatar.css('background-image', 'url(' + avatar + ')'); | 19 | $userAvatar.css('background-image', 'url(' + avatar + ')'); |
20 | }; | 20 | }; |
21 | 21 | ||
22 | -$('.yoho-page').on('touchstart', '.list-item, .type-item', function() { | 22 | +$('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', function() { |
23 | $listItem.removeClass('highlight'); | 23 | $listItem.removeClass('highlight'); |
24 | $(this).addClass('highlight'); | 24 | $(this).addClass('highlight'); |
25 | -}).on('touchend touchcancel', '.list-item, .type-item', function() { | 25 | +}).on('touchend touchcancel', '.list-item, .type-item, .order-title', function() { |
26 | $(this).removeClass('highlight'); | 26 | $(this).removeClass('highlight'); |
27 | }); | 27 | }); |
-
Please register or login to post a comment