Subversion Repositories SmartDukaan

Rev

Rev 36464 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36464 Rev 37133
Line 167... Line 167...
167
		}
167
		}
168
 
168
 
169
	});
169
	});
170
 
170
 
171
 
171
 
-
 
172
	$(document).on('click', ".vendor-pricing-bulk-approve", function() {
-
 
173
		var fileSelector = $('#bulkApproveFile')[0];
-
 
174
		if (fileSelector == undefined || fileSelector.files[0] == undefined) {
-
 
175
			alert("Please upload file!");
-
 
176
			return false;
-
 
177
		}
-
 
178
		if (confirm("Approve all requests in this file?")) {
-
 
179
			doAjaxUploadRequestHandler(context + "/bulkVendorCatalogPricing/verify", "POST", fileSelector.files[0], function(response) {
-
 
180
				if (response) {
-
 
181
					alert("Bulk approval successful");
-
 
182
					loadVendorCatalogPricingRequests("main-content");
-
 
183
				}
-
 
184
			});
-
 
185
		}
-
 
186
		return false;
-
 
187
	});
-
 
188
 
-
 
189
 
172
	$(document).on('click', ".vendor-pricing-rejected-request-send", function() {
190
	$(document).on('click', ".vendor-pricing-rejected-request-send", function() {
173
		var row = $(this).closest("tr");
191
		var row = $(this).closest("tr");
174
		console.log(row);
192
		console.log(row);
175
		var rowIndex = $(this).closest('tr').prevAll().length;
193
		var rowIndex = $(this).closest('tr').prevAll().length;
176
		console.log(rowIndex);
194
		console.log(rowIndex);