Subversion Repositories SmartDukaan

Rev

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

Rev 36080 Rev 37498
Line 22... Line 22...
22
        <input type="submit" class="mk_update_partner_criteria" name="Update">
22
        <input type="submit" class="mk_update_partner_criteria" name="Update">
23
    </form>
23
    </form>
24
</div>
24
</div>
25
 
25
 
26
##<script>
26
##<script>
-
 
27
// Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
28
// namespace first so handlers replace rather than stack.
-
 
29
$(document).off('.updatepartnercriteria');
27
##    $(document).on('click', "button.mk_edit_partner_criteria", function () {
30
##    $(document).on('click.updatepartnercriteria', "button.mk_edit_partner_criteria", function () {
28
##        var offerId = $(this).closest('tr').data("offerid");
31
##        var offerId = $(this).closest('tr').data("offerid");
29
##        let endPoint = `${context}/updatePopup?offerId=${offerId}`;
32
##        let endPoint = `${context}/updatePopup?offerId=${offerId}`;
30
##        console.log(offerId);
33
##        console.log(offerId);
31
##        window.location.href = endPoint;
34
##        window.location.href = endPoint;
32
##    });
35
##    });