Subversion Repositories SmartDukaan

Rev

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

Rev 6240 Rev 6260
Line 1... Line 1...
1
$(function(){
1
$(function(){
2
	/*$('#confirm-button').live('mouseover', function(){
-
 
3
		$('#confirm-button').css('background-image', 'url(images/confirm_pressed.png)');
-
 
4
	});
-
 
5
	$('#confirm-button').live('mouseout', function(){
-
 
6
		$('#confirm-button').css('background-image', 'url(images/confirm.png)');
-
 
7
	});*/
-
 
8
	
-
 
9
	/*
-
 
10
	$('#phone-image').hover(function(){
-
 
11
		$('#phone-image').attr('src', 'images/phone_pressed.png');}
-
 
12
		, function(){
-
 
13
		$('#phone-image').attr('src', 'images/phone.png');
-
 
14
	});
-
 
15
	$('#dth-image').hover(function(){
-
 
16
		$('#dth-image').attr('src', 'images/dth_pressed.png');}
-
 
17
		, function(){
-
 
18
		$('#dth-image').attr('src', 'images/dth.png');
-
 
19
	});
-
 
20
	*/
-
 
21
	$('#dth-image').click(function(){
2
	$('#dth-image').click(function(){
22
		trackEventWithGA('Recharge', 'Recharge Type', 'DTH');
3
		trackEventWithGA('Recharge', 'Recharge Type', 'DTH');
23
		$('#serviceType').val('2');
4
		$('#serviceType').val('2');
24
		$('#serviceSelectForm').submit();
5
		$('#serviceSelectForm').submit();
25
	});
6
	});
Line 27... Line 8...
27
		trackEventWithGA('Recharge', 'Recharge Type', 'Mobile');
8
		trackEventWithGA('Recharge', 'Recharge Type', 'Mobile');
28
		$('#serviceType').val('1');
9
		$('#serviceType').val('1');
29
		$('#serviceSelectForm').submit();
10
		$('#serviceSelectForm').submit();
30
	});
11
	});
31
	
12
	
32
	$('#confirm-button').click(function(){
13
	/*$('#confirm-button').click(function(){
33
		trackEventWithGA('Recharge', 'Confirm', '');
14
		trackEventWithGA('Recharge', 'Confirm', '');
34
		$('#rechargeDetailsForm').submit();
15
		$('#rechargeDetailsForm').submit();
35
	});
16
	});
36
	$('#pay-now-button').click(function() {
17
	$('#pay-now-button').click(function() {
37
		$('#create-recharge-form').submit();
18
		$('#create-recharge-form').submit();
38
	});
19
	});*/
39
	
20
	
40
	$.validator.addMethod("rangeamount", function(value,element){	
21
	$.validator.addMethod("rangeamount", function(value,element){	
41
		return value >= 10 && value <= 1000;
22
		return value >= 10 && value <= 1000;
42
	}, "Recharge amount should be between Rs. 10-1000");
23
	}, "Recharge amount should be between Rs. 10-1000");
43
	
24
	
Line 47... Line 28...
47
	
28
	
48
	$.validator.addMethod("selectoperator", function(value,element){	
29
	$.validator.addMethod("selectoperator", function(value,element){	
49
		return $(element).find("option:selected").index()!=0;
30
		return $(element).find("option:selected").index()!=0;
50
	}, "Please select operator");
31
	}, "Please select operator");
51
	
32
	
52
	
-
 
53
	
-
 
54
	
-
 
55
	
-
 
56
	$('#atmSelection').validate({
33
	$('#atmSelection').validate({
57
		rules:{
34
		rules:{
58
			name:{
35
			name:{
59
				required:true
36
				required:true
60
			},
37
			},