Subversion Repositories SmartDukaan

Rev

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

Rev 27088 Rev 27755
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
 
2
 
3
	$('button.imeiactivationsupload').live(
3
	$(document).on('click', 'button.imeiactivationsupload',
4
			'click',
-
 
5
			function() {
4
			function() {
6
				debugger;
5
				debugger;
7
				var fileSelector = $('#imeiactivations')[0];
6
				var fileSelector = $('#imeiactivations')[0];
8
				if (fileSelector != undefined
7
				if (fileSelector != undefined
9
						&& fileSelector.files[0] != undefined) {
8
						&& fileSelector.files[0] != undefined) {
Line 20... Line 19...
20
					alert("Please upload file!");
19
					alert("Please upload file!");
21
				}
20
				}
22
				return false;
21
				return false;
23
			});
22
			});
24
 
23
 
25
	$(".focused_model").live(
24
	$(document).on('click', ".focused_model",
26
			'click',
-
 
27
			function() {
25
			function() {
28
				loadModel("main-content");
26
				loadModel("main-content");
29
 
27
 
30
				$("#focused-model-paginated .next").live(
28
				$(document).on('click', "#focused-model-paginated .next",
31
						'click',
-
 
32
						function() {
29
						function() {
33
							loadPaginatedNextItems('/getPaginatedFocusedModel',
30
							loadPaginatedNextItems('/getPaginatedFocusedModel',
34
									null, 'focused-model-paginated',
31
									null, 'focused-model-paginated',
35
									'focused-model-table',
32
									'focused-model-table',
36
									'focused-model-container');
33
									'focused-model-container');
37
 
34
 
38
							$(this).blur();
35
							$(this).blur();
39
						});
36
						});
40
 
37
 
41
				$("#focused-model-paginated .previous").live(
38
				$(document).on('click', "#focused-model-paginated .previous",
42
						'click',
-
 
43
						function() {
39
						function() {
44
 
40
 
45
							loadPaginatedPreviousItems(
41
							loadPaginatedPreviousItems(
46
									'/getPaginatedFocusedModel', null,
42
									'/getPaginatedFocusedModel', null,
47
									'focused-model-paginated',
43
									'focused-model-paginated',
Line 51... Line 47...
51
							$(this).blur();
47
							$(this).blur();
52
						});
48
						});
53
 
49
 
54
			});
50
			});
55
 
51
 
56
	$(".add-model").live(
52
	$(document).on('click', ".add-model",
57
			'click',
-
 
58
			function() {
53
			function() {
59
				var catalogId = itemCatalogId;
54
				var catalogId = itemCatalogId;
60
				var recommended = $('#recommended').val();
55
				var recommended = $('#recommended').val();
61
				var minimumQty = $('#minimumQuantity').val();
56
				var minimumQty = $('#minimumQuantity').val();
62
				var regionId = $('#regionType').val();
57
				var regionId = $('#regionType').val();
Line 92... Line 87...
92
						loadModel("main-content");
87
						loadModel("main-content");
93
					});
88
					});
94
				}
89
				}
95
			});
90
			});
96
 
91
 
97
	$(".remove-model")
92
	$(document).on('click', ".remove-model",
98
			.live(
-
 
99
					'click',
-
 
100
					function() {
93
					function() {
101
						if (confirm("Are you sure you want to Remove the Item") == true) {
94
						if (confirm("Are you sure you want to Remove the Item") == true) {
102
							id = $(this).data('requestid');
95
							id = $(this).data('requestid');
103
							console.log(id);
96
							console.log(id);
104
							doDeleteAjaxRequestHandler(context
97
							doDeleteAjaxRequestHandler(context