Subversion Repositories SmartDukaan

Rev

Rev 26669 | Rev 27658 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26669 Rev 26817
Line 244... Line 244...
244
		redirectCart(obj.redirectUrl, obj.params, "main-content");
244
		redirectCart(obj.redirectUrl, obj.params, "main-content");
245
		$('#main-content').html(response);
245
		$('#main-content').html(response);
246
	});
246
	});
247
}
247
}
248
 
248
 
-
 
249
//On checkout we are also setting imeis why?
249
function redirectCart(url, cartData, domId){
250
function redirectCart(url, cartData, domId){
250
	var params = {
251
	var params = {
251
		"cartData":cartData	
252
		"cartData":cartData	
252
	}
253
	}
253
	doPostAjaxRequestWithParamsHandler(context + url, params, function(response){
254
	doPostAjaxRequestWithParamsHandler(context + url, params, function(response){
Line 264... Line 265...
264
        			}
265
        			}
265
        		});
266
        		});
266
        	}
267
        	}
267
        }
268
        }
268
        saveBag(cartData);
269
        saveBag(cartData);
269
        if(localStorage.getItem('customerDetails')==null){
-
 
270
        	$('#mk_restore').hide();
-
 
271
        } else {
-
 
272
        	$('#mk_restore').show();
-
 
273
        }
-
 
274
        window.dispatchEvent(new Event('resize'));
270
        window.dispatchEvent(new Event('resize'));
275
	}); 
271
	}); 
276
}
272
}
277
273