Subversion Repositories SmartDukaan

Rev

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

Rev 3057 Rev 3080
Line 51... Line 51...
51
			$('#colorbox').css('top', posTop);
51
			$('#colorbox').css('top', posTop);
52
			$('#colorbox').css('left', posLeft);
52
			$('#colorbox').css('left', posLeft);
53
		}});
53
		}});
54
	});
54
	});
55
	
55
	
-
 
56
	
-
 
57
	$('#notify').live('click', function() {
-
 
58
		emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
-
 
59
		email=$('#emailId').val();
-
 
60
		if(!email.match(emailExp)){
-
 
61
			alert("Please enter valid email.");
-
 
62
			return false;
-
 
63
		}
-
 
64
		itemId=$('#itemId').val();
-
 
65
		emailId=$('#emailId').val();
-
 
66
		jQuery.ajax({
-
 
67
   		 type: "POST",
-
 
68
   		 url: "/product-notification",
-
 
69
   		 data: "emailId="+emailId+"&itemId="+itemId,
-
 
70
   		 success: function(msg){
-
 
71
   			$('#notificationBox').html("We will notify you once we get the stock.");	 
-
 
72
   		 }
-
 
73
   	 	});
-
 
74
		
-
 
75
		
-
 
76
	});
56
});
77
});
57
 
78
 
58
 
-
 
59
 
-
 
60
function addToCart(refdivid,reqtype){
79
function addToCart(refdivid,reqtype){
61
     var seldata="";
80
     var seldata="";
62
     var tot=0;
81
     var tot=0;
63
     var saprt="";
82
     var saprt="";
64
     if(reqtype == "multi"){
83
     if(reqtype == "multi"){