Subversion Repositories SmartDukaan

Rev

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

Rev 29681 Rev 29789
Line 12... Line 12...
12
    });
12
    });
13
    
13
    
14
    $(document).on('click', 'a.mk_partner_view', 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
        if(typeof(offerId)=="undefined") {
-
 
18
        	offerId =$(this).closest('th').data('offerid');
-
 
19
        	let idx=$(this).closest('th').data('idx');
-
 
20
        	priceCircularTable.order([[parseInt(idx), 'desc']]).draw();
-
 
21
        }
17
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function(data) {
22
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function(data) {
18
        	$('#offerDescription .modal-content').html(data);
23
        	$('#offerDescription .modal-content').html(data);
19
        	$("#offerDescription").modal('show');
24
        	$("#offerDescription").modal('show');
20
        });
25
        });
21
    });
26
    });