Subversion Repositories SmartDukaan

Rev

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

Rev 1471 Rev 1481
Line 34... Line 34...
34
				
34
				
35
				jQuery.ajax({
35
				jQuery.ajax({
36
					type: "GET",
36
					type: "GET",
37
					url: "/contact-us/to_return",
37
					url: "/contact-us/to_return",
38
					success: function(data)	{
38
					success: function(data)	{
-
 
39
						if($.trim(data) == "<option value='-1'>No Orders Found</option>")	{
-
 
40
							alert("You don't hany any completed orders.");
-
 
41
							utils.resetForm();
-
 
42
						}
-
 
43
						else	{
39
						$("#order_id").html(data);
44
							$("#order_id").html(data);
-
 
45
						}
40
					}
46
					}
41
				});
47
				});
42
				lastQueryType = 1;
48
				lastQueryType = 1;
43
				utils.activateResetButton();
49
				utils.activateResetButton();
44
				break;
50
				break;
Line 51... Line 57...
51
				
57
				
52
				jQuery.ajax({
58
				jQuery.ajax({
53
					type: "GET",
59
					type: "GET",
54
					url: "/contact-us/to_cancel",
60
					url: "/contact-us/to_cancel",
55
					success: function(data)	{
61
					success: function(data)	{
-
 
62
						if($.trim(data) == "<option value='-1'>No Orders Found</option>")	{
-
 
63
							alert("You don't hany any completed orders.");
-
 
64
							utils.resetForm();
-
 
65
						}
-
 
66
						else	{
56
						$("#order_id").html(data);
67
							$("#order_id").html(data);
-
 
68
						}
57
					}
69
					}
58
				});
70
				});
59
				lastQueryType = 2;
71
				lastQueryType = 2;
60
				utils.activateResetButton();
72
				utils.activateResetButton();
61
				break;
73
				break;