|
@@ -259,19 +259,23 @@ function pullPicBig(cIndex) { |
|
@@ -259,19 +259,23 @@ function pullPicBig(cIndex) { |
259
|
|
259
|
|
260
|
function chosenDefault() {
|
260
|
function chosenDefault() {
|
261
|
if ($('.class-detail').length > 0) {
|
261
|
if ($('.class-detail').length > 0) {
|
|
|
262
|
+ clearCookieArr(3);
|
262
|
window.setCookie('chosenClass', $('.class-detail').find('.name').text());
|
263
|
window.setCookie('chosenClass', $('.class-detail').find('.name').text());
|
263
|
window.setCookie('packageId', $('.class-detail').find('.name').attr('id'));
|
264
|
window.setCookie('packageId', $('.class-detail').find('.name').attr('id'));
|
264
|
}
|
265
|
}
|
265
|
if ($('.adviser-info').find('.name').length > 0) {
|
266
|
if ($('.adviser-info').find('.name').length > 0) {
|
|
|
267
|
+ clearCookieArr(3);
|
266
|
window.setCookie('chosenCutter', $('.adviser-info').find('.name').text());
|
268
|
window.setCookie('chosenCutter', $('.adviser-info').find('.name').text());
|
267
|
window.setCookie('chosenAdviser', $('.adviser-info').find('.name').text());
|
269
|
window.setCookie('chosenAdviser', $('.adviser-info').find('.name').text());
|
268
|
window.setCookie('cutterId', $('.cutter-id').val());
|
270
|
window.setCookie('cutterId', $('.cutter-id').val());
|
269
|
}
|
271
|
}
|
270
|
if ($('.style-detail').length > 0) {
|
272
|
if ($('.style-detail').length > 0) {
|
|
|
273
|
+ clearCookieArr(3);
|
271
|
window.setCookie('styleId', window.queryString.id);
|
274
|
window.setCookie('styleId', window.queryString.id);
|
272
|
window.setCookie('chosenStyle', ' ' + decodeURI(window.queryString.styleName) + ' ');
|
275
|
window.setCookie('chosenStyle', ' ' + decodeURI(window.queryString.styleName) + ' ');
|
273
|
}
|
276
|
}
|
274
|
if ($('.package-detail').length > 0 && $('.foot-btn').length > 0) {
|
277
|
if ($('.package-detail').length > 0 && $('.foot-btn').length > 0) {
|
|
|
278
|
+ clearCookieArr(3);
|
275
|
window.setCookie('chosenPackage', $('.package-detail').find('.name').text());
|
279
|
window.setCookie('chosenPackage', $('.package-detail').find('.name').text());
|
276
|
window.setCookie('packageLimit', $('.package-detail').find('.limit').val());
|
280
|
window.setCookie('packageLimit', $('.package-detail').find('.limit').val());
|
277
|
window.setCookie('packageStyle', $('.package-detail').find('.styleid').val());
|
281
|
window.setCookie('packageStyle', $('.package-detail').find('.styleid').val());
|