Subversion Repositories SmartDukaan

Rev

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

Rev 30076 Rev 30084
Line 1... Line 1...
1
$().ready(function() {
1
function createSchemeOnReady() {
2
	$("form#create-scheme-form input").each(function(){
2
	$("form#create-scheme-form input").each(function () {
3
		$(this).attr('autocomplete', 'off');
3
		$(this).attr('autocomplete', 'off');
4
	});
4
	});
5
});
-
 
6
$().ready(function() {
-
 
7
        // validate the comment form when it is submitted
5
	// validate the comment form when it is submitted
8
        $('#create-scheme-form').validate({
6
	$('#create-scheme-form').validate({
9
		rules:{
7
		rules: {
10
			schemeName:{
8
			schemeName: {
11
				required:true
9
				required: true
12
			},
10
			},
13
			schemeType:{
11
			schemeType: {
14
				required:true
12
				required: true
15
			},
13
			},
16
			amountType:{
14
			amountType: {
17
				required:true
15
				required:true
18
			},
16
			},
19
			schemeAmount:{
17
			schemeAmount:{
20
				required:true
18
				required:true
21
			},
19
			},
Line 72... Line 70...
72
				});
70
				});
73
	             return false; // required to block normal submit since you used ajax
71
	             return false; // required to block normal submit since you used ajax
74
			}
72
			}
75
         }
73
         }
76
	});
74
	});
77
  
75
 
78
});
76
}
79
 
77
 
80
 
78
 
81
$('#retailerAll').on('change', function() {
79
$('#retailerAll').on('change', function() {
82
    if (this.checked) {
80
    if (this.checked) {
83
    	$('#retailerAll').val('true');
81
    	$('#retailerAll').val('true');