Rev 23783 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$(document).on('click', ".create-vendor", function() {loadCreateVendor("main-content");});$(document).on('click', ".vendors", function() {loadVendors("main-content");});$(document).on('click', "#vendors-paginated .next", function() {loadPaginatedNextItems('/getPaginatedVendors', null, 'vendors-paginated', 'vendors-table', null);$(this).blur();});$(document).on('click', "#vendors-paginated .previous", function() {loadPaginatedPreviousItems('/getPaginatedVendors', null, 'vendors-paginated', 'vendors-table', null);$(this).blur();});});function loadCreateVendor(domId){doGetAjaxRequestHandler(context+"/createVendor", function(response){$('#' + domId).html(response);});}function loadVendors(domId){doGetAjaxRequestHandler(context+"/getVendors", function(response){$('#' + domId).html(response);});}