Subversion Repositories SmartDukaan

Rev

Rev 35583 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35583 Rev 37498
Line 77... Line 77...
77
 
77
 
78
 
78
 
79
<script>
79
<script>
80
 
80
 
81
 
81
 
-
 
82
    // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
83
    // namespace first so handlers replace rather than stack.
-
 
84
    $(document).off('.bulletinlist');
82
    $(document).on('click', '.today-bulletin-offer', function () {
85
    $(document).on('click.bulletinlist', '.today-bulletin-offer', function () {
83
        let offerId = $(this).data("offerid");
86
        let offerId = $(this).data("offerid");
84
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function (data) {
87
        doGetAjaxRequestHandler(`${context}/getOfferMargins?offerId=${offerId}`, function (data) {
85
            $('#todayBulletinOfferDescription .modal-content').html(data);
88
            $('#todayBulletinOfferDescription .modal-content').html(data);
86
            $("#todayBulletinOfferDescription").modal('show');
89
            $("#todayBulletinOfferDescription").modal('show');
87
        });
90
        });