Subversion Repositories SmartDukaan

Rev

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

Rev 7872 Rev 7873
Line 505... Line 505...
505
				
505
				
506
				if(deliveryEstimate == -1)	{
506
				if(deliveryEstimate == -1)	{
507
					$("#serv_" + item_id).show();
507
					$("#serv_" + item_id).show();
508
					return;
508
					return;
509
				} else	{
509
				} else	{
510
					var systemDate = response['system_date'];
-
 
511
					toDate = new Date(systemDate);
-
 
512
					myDate = new Date(deliveryEstimate);
-
 
513
					days = (myDate-toDate)/86400000;
-
 
514
					$("#days_" + item_id).html(deliveryEstimate);
510
					$("#days_" + item_id).html(deliveryEstimate);
515
					if(days == 1){
-
 
516
						$("#days_" + item_id).html("Tomorrow, " +  deliveryEstimate);
511
					$("#days_" + item_id).html(deliveryEstimate);
517
					}
-
 
518
					$("coddays_" + item_id).hide();
512
					$("coddays_" + item_id).hide();
519
					if(isCODAvailableForLocation && (deliveryEstimate == codDeliveryEstimate)){
513
					if(isCODAvailableForLocation && (deliveryEstimate == codDeliveryEstimate)){
520
						codDeliveryEstimate = "Cash On Delivery orders is ";
514
						codDeliveryEstimate = "Cash On Delivery orders is ";
521
						$("#coddays_" + item_id).html(codDeliveryEstimate);
515
						$("#coddays_" + item_id).html(codDeliveryEstimate);
522
						$("coddays_" + item_id).show();	
516
						$("coddays_" + item_id).show();