Authored by hf

fixes bugs to gzip css and js

@@ -6565,7 +6565,6 @@ define("js/me/fav", ["jquery","hammer","swiper","handlebars","source-map","index @@ -6565,7 +6565,6 @@ define("js/me/fav", ["jquery","hammer","swiper","handlebars","source-map","index
6565 * @author: chenglong<chenglong.wang@yoho.cn> 6565 * @author: chenglong<chenglong.wang@yoho.cn>
6566 * @date: 2015/11/12 6566 * @date: 2015/11/12
6567 */ 6567 */
6568 -  
6569 var $ = require("jquery"), 6568 var $ = require("jquery"),
6570 Hammer = require("hammer"), 6569 Hammer = require("hammer"),
6571 Swiper = require("swiper"); 6570 Swiper = require("swiper");
@@ -8770,13 +8769,6 @@ if ($('.cart-nav').length > 0) { @@ -8770,13 +8769,6 @@ if ($('.cart-nav').length > 0) {
8770 return; 8769 return;
8771 } 8770 }
8772 8771
8773 - if (switchChose === false) {  
8774 - $cartContentShow.find('.shopping-cart-good .name').each(function() {  
8775 - this.mlellipsis(2);  
8776 - });  
8777 - switchChose = true;  
8778 - }  
8779 -  
8780 if (cartType === 'ordinary') { 8772 if (cartType === 'ordinary') {
8781 cartType = 'advance'; 8773 cartType = 'advance';
8782 $('#cartType').val('advance'); 8774 $('#cartType').val('advance');
@@ -8793,6 +8785,13 @@ if ($('.cart-nav').length > 0) { @@ -8793,6 +8785,13 @@ if ($('.cart-nav').length > 0) {
8793 8785
8794 $cartContentShow = $cartContent.not('.hide'); 8786 $cartContentShow = $cartContent.not('.hide');
8795 8787
  8788 + if (switchChose === false) {
  8789 + $cartContentShow.find('.shopping-cart-good .name').each(function() {
  8790 + this.mlellipsis(2);
  8791 + });
  8792 + switchChose = true;
  8793 + }
  8794 +
8796 //trigger lazyload 8795 //trigger lazyload
8797 $(window).trigger('scroll'); 8796 $(window).trigger('scroll');
8798 }); 8797 });
@@ -9025,7 +9024,7 @@ function didUpdateAllGoodsCheckStatus() { @@ -9025,7 +9024,7 @@ function didUpdateAllGoodsCheckStatus() {
9025 $(checkedBox).removeClass('icon-cb-checked').addClass('icon-checkbox'); 9024 $(checkedBox).removeClass('icon-cb-checked').addClass('icon-checkbox');
9026 }); 9025 });
9027 } 9026 }
9028 - window.history.go(0); 9027 + window.location.href = '/cart/index/index?cartType=' + $('#cartType').val();
9029 } 9028 }
9030 9029
9031 function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { 9030 function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) {
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 { 1 {
2 "name": "yohobuy", 2 "name": "yohobuy",
3 - "version": "1.2.1", 3 + "version": "1.2.2",
4 "description": "yohobuy statics", 4 "description": "yohobuy statics",
5 "keywords": [], 5 "keywords": [],
6 "homepage": "", 6 "homepage": "",