Subversion Repositories SmartDukaan

Rev

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

Rev 28422 Rev 28437
Line 197... Line 197...
197
				+ "/getPendingOrderItemById?id=" + orderItemId, function(response) {
197
				+ "/getPendingOrderItemById?id=" + orderItemId, function(response) {
198
					$('.cancel-online-order-container .modal-content').html(response);
198
					$('.cancel-online-order-container .modal-content').html(response);
199
				});
199
				});
200
		});
200
		});
201
 
201
 
-
 
202
	$(document).on('click', ".change-partner",
-
 
203
		function() {
-
 
204
 
-
 
205
			var orderId = $(this).data('poid');
-
 
206
			doGetAjaxRequestHandler(context
-
 
207
				+ "/getPendingOrderChangePartnerById?id=" + orderId, function(response) {
-
 
208
					$('.change-partner-online-order-container  .modal-content').html(response);
-
 
209
				});
-
 
210
		});
-
 
211
 
-
 
212
 
-
 
213
	$(document).on('click', ".change-partner-po",
-
 
214
		function() {
-
 
215
			var orderId = $(this).data('poid');
-
 
216
			var fofoId = $("#fofo-users").val();
-
 
217
			if (confirm("Are you sure you want to change the partner!") == true) {
-
 
218
				doPostAjaxRequestHandler(context
-
 
219
					+ "/changePendingOrderPartner?id="
-
 
220
					+ orderId + "&fofoId=" + fofoId, function(response) {
-
 
221
						if (response == 'true') {
-
 
222
 
-
 
223
							alert("Partner Successfully Change");
-
 
224
							$('#changePartnerOnlineOrder').modal('hide');
-
 
225
							$('.modal-backdrop').remove();
-
 
226
							$('.online-order-submit').click();
-
 
227
 
-
 
228
						}
-
 
229
					});
-
 
230
 
-
 
231
				return false;
-
 
232
 
-
 
233
			}
-
 
234
 
-
 
235
		});
202
 
236
 
203
	$(document).on('click', ".cancel-pending-order",
237
	$(document).on('click', ".cancel-pending-order",
204
		function() {
238
		function() {
205
			var orderItemId = $(this).data('poitemid');
239
			var orderItemId = $(this).data('poitemid');
206
			var reason = $('#selectCancelreason').val();
240
			var reason = $('#selectCancelreason').val();