Authored by hf

fixes bug to home page login show status

@@ -4828,19 +4828,28 @@ function hiddenTips($ele) { @@ -4828,19 +4828,28 @@ function hiddenTips($ele) {
4828 } 4828 }
4829 } 4829 }
4830 4830
4831 -function isFlexSupport() {  
4832 - var flex = document.createElement('p').style.flex,  
4833 - webkitFlex = document.createElement('p').style.webkitFlex,  
4834 - flexWrap = document.createElement('p').style.flexWrap;  
4835 -  
4836 - if ((flex === '' || webkitFlex === '') && flexWrap === '') {  
4837 - return true;  
4838 - } else {  
4839 - return false; 4831 +//function isFlexSupport() {
  4832 +// var flex = document.createElement('p').style.flex,
  4833 +// webkitFlex = document.createElement('p').style.webkitFlex,
  4834 +// flexWrap = document.createElement('p').style.flexWrap;
  4835 +//
  4836 +// if ((flex === '' || webkitFlex === '') && flexWrap === '') {
  4837 +// return true;
  4838 +// } else {
  4839 +// return false;
  4840 +// }
  4841 +//}
  4842 +
  4843 +function wrapElements(selector, count) {
  4844 + $(selector).each(function(idx, el) {
  4845 + if (idx % count === 0) {
  4846 + $($(selector).slice(idx, idx + count)).wrapAll($('<div class="js-wraper"></div>'));
4840 } 4847 }
  4848 + });
4841 } 4849 }
4842 4850
4843 4851
  4852 +
4844 function search() { 4853 function search() {
4845 if (searching || end) { 4854 if (searching || end) {
4846 return; 4855 return;
@@ -4875,9 +4884,10 @@ function search() { @@ -4875,9 +4884,10 @@ function search() {
4875 hiddenTips($('#size-swiper-container')); 4884 hiddenTips($('#size-swiper-container'));
4876 hiddenTips($('#reference-swiper-container')); 4885 hiddenTips($('#reference-swiper-container'));
4877 4886
4878 - if (!isFlexSupport()) {  
4879 - $('.detail .column').removeClass('column').addClass('oldbox');  
4880 - } 4887 + //if (!isFlexSupport()) {
  4888 + // $('.detail .column').removeClass('column').addClass('oldbox');
  4889 + //}
  4890 + wrapElements('.detail .column', 2);
4881 searching = false; 4891 searching = false;
4882 end = true; 4892 end = true;
4883 loading.hideLoadingMask(); 4893 loading.hideLoadingMask();
@@ -5932,6 +5942,13 @@ function scrollHandler() { @@ -5932,6 +5942,13 @@ function scrollHandler() {
5932 5942
5933 //srcoll to load more 5943 //srcoll to load more
5934 $(window).scroll(scrollHandler); 5944 $(window).scroll(scrollHandler);
  5945 +
  5946 +$(document).on('touchend', '.swiper-header', function() {
  5947 + var url = $(this).find('.fav-more').attr('href');
  5948 +
  5949 + window.location.href = url;
  5950 +});
  5951 +
5935 }); 5952 });
5936 define("js/me/suggest", ["jquery","hammer","lazyload","handlebars","source-map"], function(require, exports, module){ 5953 define("js/me/suggest", ["jquery","hammer","lazyload","handlebars","source-map"], function(require, exports, module){
5937 /** 5954 /**
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.