Subversion Repositories SmartDukaan

Rev

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

Rev 33809 Rev 33973
Line -... Line 1...
-
 
1
let xmlJson;
1
$(document).on('click', 'a.list-group-item', function() {
2
$(document).on('click', 'a.list-group-item', function() {
2
	reportTitle = $(this).find('h4').html();
3
	reportTitle = $(this).find('h4').html();
3
	reportUrl = this.href;
4
	reportUrl = this.href;
4
	$reportModal = $('#report-modal');
5
	$reportModal = $('#report-modal');
5
	$reportModal.find('h4.modal-title').html(reportTitle);
6
	$reportModal.find('h4.modal-title').html(reportTitle);
Line 746... Line 747...
746
	if (typeof partnerId != "undefined") {
747
	if (typeof partnerId != "undefined") {
747
		endPoint = `${endPoint}&fofoId=${partnerId}`;
748
		endPoint = `${endPoint}&fofoId=${partnerId}`;
748
	}
749
	}
749
 
750
 
750
	window.location.href = endPoint;
751
	window.location.href = endPoint;
-
 
752
});
-
 
753
 
-
 
754
$(document).on('click', ".reportico", function() {
-
 
755
	doGetAjaxRequestHandler(context + "/reportico", function(response) {
-
 
756
		$('#' + 'main-content').html(response);
-
 
757
	});
-
 
758
});
-
 
759
 
-
 
760
$(document).on('click', ".getFileContent", function() {
-
 
761
	$reportModal = $('#reportico-modal');
-
 
762
	const url = $(this).data('url');
-
 
763
	doGetAjaxRequestHandler(context + url, function(response) {
-
 
764
		console.log('response json',response)
-
 
765
		$('#' + 'reportico-content').html(response);
-
 
766
		$reportModal = $('#reportico-modal').modal('show');
-
 
767
	});
751
});
768
});
752
769