Showing
1 changed file
with
4 additions
and
3 deletions
@@ -146,11 +146,12 @@ function changeSizeChosed(newSizeIndex) { | @@ -146,11 +146,12 @@ function changeSizeChosed(newSizeIndex) { | ||
146 | $curSizeBlock = $(sizes[i]); | 146 | $curSizeBlock = $(sizes[i]); |
147 | queryString = '#' + $curSizeBlock.data('name'); | 147 | queryString = '#' + $curSizeBlock.data('name'); |
148 | curColorIndex = $(queryString).data('index'); | 148 | curColorIndex = $(queryString).data('index'); |
149 | + $curSizeBlock.addClass('chosed'); | ||
150 | + return $curSizeBlock.data('num'); | ||
149 | } | 151 | } |
150 | } | 152 | } |
151 | - | ||
152 | - $curSizeBlock.addClass('chosed'); | ||
153 | - return $curSizeBlock.data('num'); | 153 | + $curSizeBlock = null; |
154 | + return 0; | ||
154 | } | 155 | } |
155 | return 0; | 156 | return 0; |
156 | } | 157 | } |
-
Please register or login to post a comment