Subversion Repositories SmartDukaan

Rev

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

Rev 35459 Rev 35648
Line 699... Line 699...
699
});
699
});
700
 
700
 
701
$(document).on('click', '.retailer-contact-submit', function () {
701
$(document).on('click', '.retailer-contact-submit', function () {
702
	var contactName = $('#retailer-contact-name').val();
702
	var contactName = $('#retailer-contact-name').val();
703
	var contactNumber = $('#retailer-contact-number').val();
703
	var contactNumber = $('#retailer-contact-number').val();
-
 
704
	var brandName = $('#retailer-contact-brand').val();
-
 
705
	var contactType = $('#retailer-contact-type').val();
704
 
706
 
705
	if (typeof partnerId != "undefined") {
707
	if (typeof partnerId != "undefined") {
706
		doGetAjaxRequestHandler(context + "/add-retailer-contact-list?contactName=" + contactName + "&contactNumber=" + contactNumber + "&fofoId=" + partnerId,
708
		doGetAjaxRequestHandler(context + "/add-retailer-contact-list?contactName=" + encodeURIComponent(contactName) + "&contactNumber=" + encodeURIComponent(contactNumber) + "&brandName=" + encodeURIComponent(brandName) + "&contactType=" + encodeURIComponent(contactType) + "&fofoId=" + partnerId,
707
			function (response) {
709
			function (response) {
708
				$('#update-retailer-contact-modal').modal('toggle');
710
				$('#update-retailer-contact-modal').modal('toggle');
709
				$('.retailer-contacts-container').html(response);
711
				$('.retailer-contacts-container').html(response);
710
			});
712
			});
711
	}
713
	}