Showing
1 changed file
with
7 additions
and
7 deletions
@@ -100,13 +100,6 @@ if ($('.cart-nav').length > 0) { | @@ -100,13 +100,6 @@ if ($('.cart-nav').length > 0) { | ||
100 | return; | 100 | return; |
101 | } | 101 | } |
102 | 102 | ||
103 | - if (switchChose === false) { | ||
104 | - $cartContentShow.find('.shopping-cart-good .name').each(function() { | ||
105 | - this.mlellipsis(2); | ||
106 | - }); | ||
107 | - switchChose = true; | ||
108 | - } | ||
109 | - | ||
110 | if (cartType === 'ordinary') { | 103 | if (cartType === 'ordinary') { |
111 | cartType = 'advance'; | 104 | cartType = 'advance'; |
112 | $('#cartType').val('advance'); | 105 | $('#cartType').val('advance'); |
@@ -123,6 +116,13 @@ if ($('.cart-nav').length > 0) { | @@ -123,6 +116,13 @@ if ($('.cart-nav').length > 0) { | ||
123 | 116 | ||
124 | $cartContentShow = $cartContent.not('.hide'); | 117 | $cartContentShow = $cartContent.not('.hide'); |
125 | 118 | ||
119 | + if (switchChose === false) { | ||
120 | + $cartContentShow.find('.shopping-cart-good .name').each(function() { | ||
121 | + this.mlellipsis(2); | ||
122 | + }); | ||
123 | + switchChose = true; | ||
124 | + } | ||
125 | + | ||
126 | //trigger lazyload | 126 | //trigger lazyload |
127 | $(window).trigger('scroll'); | 127 | $(window).trigger('scroll'); |
128 | }); | 128 | }); |
-
Please register or login to post a comment