Showing
1 changed file
with
1 additions
and
3 deletions
@@ -173,7 +173,7 @@ function ajaxResource() { | @@ -173,7 +173,7 @@ function ajaxResource() { | ||
173 | 173 | ||
174 | $('.banner-center-swiper').each(function() { | 174 | $('.banner-center-swiper').each(function() { |
175 | if ($(this).find('li').length > 1) { | 175 | if ($(this).find('li').length > 1) { |
176 | - new Swiper('.banner-center-swiper', { | 176 | + new Swiper(this, { |
177 | preloadImages: false, | 177 | preloadImages: false, |
178 | lazyLoading: true, | 178 | lazyLoading: true, |
179 | lazyLoadingInPrevNext: true, | 179 | lazyLoadingInPrevNext: true, |
@@ -185,8 +185,6 @@ function ajaxResource() { | @@ -185,8 +185,6 @@ function ajaxResource() { | ||
185 | slideElement: 'li', | 185 | slideElement: 'li', |
186 | pagination: '.banner-center .pagination-inner', | 186 | pagination: '.banner-center .pagination-inner', |
187 | }); | 187 | }); |
188 | - } else { | ||
189 | - $(this).unbind(); | ||
190 | } | 188 | } |
191 | }); | 189 | }); |
192 | 190 |
-
Please register or login to post a comment