Subversion Repositories SmartDukaan

Rev

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

Rev 29189 Rev 29681
Line 9... Line 9...
9
    	let yearMonth = $("#yearmonth").val();
9
    	let yearMonth = $("#yearmonth").val();
10
    	loadOfferHistory('#main-content', yearMonth);
10
    	loadOfferHistory('#main-content', yearMonth);
11
    	
11
    	
12
    });
12
    });
13
    
13
    
14
    $(document).on('click', 'a.mk_offer_detail', function() {
14
    $(document).on('click', 'a.mk_partner_view', function() {
15
    	let $offerTr = $(this).closest('tr');
15
    	let $offerTr = $(this).closest('tr');
16
        let offerId = $offerTr.data('offerid');
16
        let offerId = $offerTr.data('offerid');
17
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function(data) {
17
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function(data) {
18
        	$('#offerDescription .modal-content').html(data);
18
        	$('#offerDescription .modal-content').html(data);
19
        	$("#offerDescription").modal('show');
19
        	$("#offerDescription").modal('show');
20
        });
20
        });
21
    });
21
    });
-
 
22
    
-
 
23
    $(document).on('click', 'a.mk_offer_detail', function() {
-
 
24
    	let $offerTr = $(this).closest('tr');
-
 
25
        let offerId = $offerTr.data('offerid');
-
 
26
        doGetAjaxRequestHandler(`${context}\offer-details?offerId=${offerId}`, function(data) {
-
 
27
        	$('#offerDescription .modal-content').html(data);
-
 
28
        	$("#offerDescription").modal('show');
-
 
29
        });
-
 
30
    });
22
    $(document).on('click', 'a.offer_history', function () {
31
    $(document).on('click', 'a.offer_history', function () {
23
        let dt = new Date();
32
        let dt = new Date();
24
        loadOfferHistory('#main-content', new Date().toISOString().slice(0,7));
33
        loadOfferHistory('#main-content', new Date().toISOString().slice(0,7));
25
    });
34
    });
26
    $(document).on('click', 'input.create-offer', function () {
35
    $(document).on('click', 'input.create-offer', function () {