Authored by whb

index,cs

@@ -2404,6 +2404,10 @@ var $ = require("jquery"), @@ -2404,6 +2404,10 @@ var $ = require("jquery"),
2404 2404
2405 Slider.prototype = { 2405 Slider.prototype = {
2406 init: function() { 2406 init: function() {
  2407 + if (!this.$element) {
  2408 + return;
  2409 + }
  2410 +
2407 if (this.len <= 1) { 2411 if (this.len <= 1) {
2408 lazyLoad(this.$element.find('img.lazy')); 2412 lazyLoad(this.$element.find('img.lazy'));
2409 return; 2413 return;
@@ -2509,7 +2513,13 @@ var $ = require("jquery"), @@ -2509,7 +2513,13 @@ var $ = require("jquery"),
2509 2513
2510 2514
2511 this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus'); 2515 this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus');
2512 - this.bigItem.eq(this.index).fadeIn().siblings().fadeOut(); 2516 + this.bigItem.eq(this.index).show().stop().animate({
  2517 + opacity: 1
  2518 + }).siblings().stop().animate({
  2519 + opacity: 0
  2520 + }, function() {
  2521 + $(this).hide();
  2522 + });
2513 }, 2523 },
2514 _autoplay: function() { 2524 _autoplay: function() {
2515 var that = this; 2525 var that = this;
@@ -2749,9 +2759,8 @@ if (homePage === 'boys') { @@ -2749,9 +2759,8 @@ if (homePage === 'boys') {
2749 $('.slide-container').slider({ 2759 $('.slide-container').slider({
2750 pagination: '.thumb-pagination' 2760 pagination: '.thumb-pagination'
2751 }); 2761 });
2752 -} else if (homePage === 'girls') {  
2753 - $('.center-col').slider();  
2754 } else { 2762 } else {
  2763 + $('.center-col').slider();
2755 $('.slide-container').slider(); 2764 $('.slide-container').slider();
2756 } 2765 }
2757 2766
This diff could not be displayed because it is too large.