Subversion Repositories SmartDukaan

Rev

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

Rev 33128 Rev 33814
Line 674... Line 674...
674
			});
674
			});
675
 
675
 
676
		return false;
676
		return false;
677
	}
677
	}
678
 
678
 
679
}
-
 
680
679
}
-
 
680
 
-
 
681
$(document).on('click', ".retailer_contacts", function () {
-
 
682
	doGetAjaxRequestHandler(context + "/alternateRetailerContacts",
-
 
683
		function (response) {
-
 
684
			$('#' + 'main-content').html(response);
-
 
685
		});
-
 
686
});
-
 
687
 
-
 
688
$(document).on('click', '.get-retailer-contacts', function () {
-
 
689
 
-
 
690
	if (typeof partnerId != "undefined") {
-
 
691
		doGetAjaxRequestHandler(context + "/retailer-contact-list?fofoId=" + partnerId,
-
 
692
			function (response) {
-
 
693
				$('.retailer-contacts-container').html(response);
-
 
694
			});
-
 
695
	}
-
 
696
 
-
 
697
});
-
 
698
 
-
 
699
$(document).on('click', '.retailer-contact-submit', function () {
-
 
700
	var contactName = $('#retailer-contact-name').val();
-
 
701
	var contactNumber = $('#retailer-contact-number').val();
-
 
702
 
-
 
703
	if (typeof partnerId != "undefined") {
-
 
704
		doGetAjaxRequestHandler(context + "/add-retailer-contact-list?contactName=" + contactName + "&contactNumber=" + contactNumber + "&fofoId=" + partnerId,
-
 
705
			function (response) {
-
 
706
				$('#update-retailer-contact-modal').modal('toggle');
-
 
707
				$('.retailer-contacts-container').html(response);
-
 
708
			});
-
 
709
	}
-
 
710
 
-
 
711
});
-
 
712
 
-
 
713
$(document).on('click', '.update-contact-status', function () {
-
 
714
	var contactId = $(this).data('contactid');
-
 
715
	var active = $(this).data('status');
-
 
716
 
-
 
717
	if (typeof partnerId != "undefined") {
-
 
718
		doGetAjaxRequestHandler(context + "/update-contact-status?contactId=" + contactId + "&fofoId=" + partnerId + "&active=" + active,
-
 
719
			function (response) {
-
 
720
				$('.retailer-contacts-container').html(response);
-
 
721
			});
-
 
722
	}
-
 
723
 
-
 
724
});
-
 
725
681
726