Subversion Repositories SmartDukaan

Rev

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

Rev 27081 Rev 27088
Line 57... Line 57...
57
			'click',
57
			'click',
58
			function() {
58
			function() {
59
				var catalogId = itemCatalogId;
59
				var catalogId = itemCatalogId;
60
				var recommended = $('#recommended').val();
60
				var recommended = $('#recommended').val();
61
				var minimumQty = $('#minimumQuantity').val();
61
				var minimumQty = $('#minimumQuantity').val();
62
				var partnerType = $('#retailerType').val();
62
				var regionId = $('#regionType').val();
63
 
63
 
64
				if (catalogId === null && recommended === ""
64
				if (catalogId === null && recommended === ""
65
						&& minimumQty === "") {
65
						&& minimumQty === "") {
66
					alert("Field can't be empty");
66
					alert("Field can't be empty");
67
					return;
67
					return;
Line 81... Line 81...
81
				}
81
				}
82
				var params = {
82
				var params = {
83
					"catalogId" : catalogId,
83
					"catalogId" : catalogId,
84
					"recommended" : recommended,
84
					"recommended" : recommended,
85
					"minimumQty" : minimumQty,
85
					"minimumQty" : minimumQty,
86
					"partnerType" : partnerType
86
					"regionId" : regionId
87
				}
87
				}
88
				if (confirm("Are you sure you want to add item!") == true) {
88
				if (confirm("Are you sure you want to add item!") == true) {
89
					doPostAjaxRequestWithParamsHandler(context
89
					doPostAjaxRequestWithParamsHandler(context
90
							+ "/focusedModel", params, function(response) {
90
							+ "/focusedModel", params, function(response) {
91
						alert("Add Item Successfully");
91
						alert("Add Item Successfully");