Subversion Repositories SmartDukaan

Rev

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

Rev 36895 Rev 36899
Line 430... Line 430...
430
        function (response) {
430
        function (response) {
431
            $('#' + 'main-content').html(response);
431
            $('#' + 'main-content').html(response);
432
        });
432
        });
433
}
433
}
434
 
434
 
-
 
435
$(document).on('click', '.allocation-page-link', function () {
-
 
436
    var page = $(this).data('page');
-
 
437
    var pageSize = $('.allocation-page-size').val() || 50;
-
 
438
    loadApprovedAllocationsPage(page, pageSize);
-
 
439
});
-
 
440
 
-
 
441
$(document).on('change', '.allocation-page-size', function () {
-
 
442
    loadApprovedAllocationsPage(0, $(this).val());
-
 
443
});
-
 
444
 
-
 
445
function loadApprovedAllocationsPage(page, pageSize) {
-
 
446
    doGetAjaxRequestHandler(context + "/pur-sale-ratio/requested-allocations?approvedPage=" + (page || 0) + "&approvedPageSize=" + (pageSize || 50),
-
 
447
        function (response) {
-
 
448
            $('#main-content').html(response);
-
 
449
            // stay on the Approved tab after the fragment reloads
-
 
450
            $('a[data-toggle="tab"][href="#approved"]').tab('show');
-
 
451
        });
-
 
452
}
-
 
453
 
435
 
454