Subversion Repositories SmartDukaan

Rev

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

Rev 27754 Rev 27755
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
	$(document).on('click', ".partner-po", function() {
2
	$(document).on('click', ".partner-po", function() {
3
		loadCreatePo("main-content");
3
		loadCreatePo("main-content");
4
	});
4
	});
5
 
5
 
6
	$(".partner-item-detail").live(
6
	$(document).on('click', ".partner-item-detail",
7
			'click',
-
 
8
			function() {
7
			function() {
9
				var fofoId = $('#fofo-users').val();
8
				var fofoId = $('#fofo-users').val();
10
 
9
 
11
				var url = "/getPartnerloadContent?fofoId=" + fofoId
10
				var url = "/getPartnerloadContent?fofoId=" + fofoId
12
						+ "&counterSize=" + "TEN_LAC";
11
						+ "&counterSize=" + "TEN_LAC";
Line 16... Line 15...
16
 
15
 
17
					$('.partner-po-container').html(response);
16
					$('.partner-po-container').html(response);
18
				});
17
				});
19
			});
18
			});
20
 
19
 
21
	$(".selectItemQty").live(
20
	$(document).on("click", ".selectItemQty",
22
			"click",
-
 
23
			function() {
21
			function() {
24
				var catalogId = parseInt($(this).data("catalog-id"));
22
				var catalogId = parseInt($(this).data("catalog-id"));
25
				doGetAjaxRequestHandler(context + "/selectItemColor?catalogId="
23
				doGetAjaxRequestHandler(context + "/selectItemColor?catalogId="
26
						+ catalogId, function(response) {
24
						+ catalogId, function(response) {
27
 
25
 
Line 56... Line 54...
56
 
54
 
57
		$(this).closest("tr").remove();
55
		$(this).closest("tr").remove();
58
 
56
 
59
	});
57
	});
60
 
58
 
61
	$(".submit-item")
59
	$(document).on("click", ".submit-item",
62
			.live(
-
 
63
					"click",
-
 
64
					function(e) {
60
					function(e) {
65
						var seletedIds;
61
						var seletedIds;
66
						var seletedIdsJson = [];
62
						var seletedIdsJson = [];
67
 
63
 
68
						$('#select-item-table').find('tr').each(
64
						$('#select-item-table').find('tr').each(
Line 114... Line 110...
114
						}
110
						}
115
 
111
 
116
						$("#selectItem").modal("hide");
112
						$("#selectItem").modal("hide");
117
					});
113
					});
118
 
114
 
119
	$(".confirm_po").live(
115
	$(document).on('click', ".confirm_po",
120
			'click',
-
 
121
			function() {
116
			function() {
122
				var jsonObject = {};
117
				var jsonObject = {};
123
				var poIdsJSon = [];
118
				var poIdsJSon = [];
124
				var poIds;
119
				var poIds;
125
				var fofoId = $('#fofo-users').val();
120
				var fofoId = $('#fofo-users').val();