Showing
1 changed file
with
4 additions
and
1 deletions
@@ -159,8 +159,11 @@ function checkMoreBrands(callback) { | @@ -159,8 +159,11 @@ function checkMoreBrands(callback) { | ||
159 | var brandsHtml; | 159 | var brandsHtml; |
160 | var params = (location.search || '').substr(1); | 160 | var params = (location.search || '').substr(1); |
161 | 161 | ||
162 | - if (!moreBrandLoaded) { | 162 | + if(moreBrandLoaded === 'loading') { |
163 | + return; | ||
164 | + } else if (!moreBrandLoaded) { | ||
163 | 165 | ||
166 | + moreBrandLoaded = 'loading'; | ||
164 | $.getJSON(url, params, function(jsonData) { | 167 | $.getJSON(url, params, function(jsonData) { |
165 | 168 | ||
166 | if (jsonData.code === 200) { | 169 | if (jsonData.code === 200) { |
-
Please register or login to post a comment