Rev 29813 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {loadCreditDetail("main-content");});$(document).on('click', '.activate-partner-kred', function() {var row = $(this).closest("tr");var fofoId = $(this).data('fofoid');if (confirm('Confirm upload ?')) {doPostAjaxRequestHandler(context + "/activateKred?fofoId=" + fofoId,function(response) {row.html(response);alert("successfully activate");});}});$(document).on('click', '.deactivate-partner-kred', function() {var row = $(this).closest("tr");var fofoId = $(this).data('fofoid');if (confirm('Confirm upload ?')) {doPostAjaxRequestHandler(context + "/deactivateKred?fofoId=" + fofoId,function(response) {row.html(response);alert("successfully deactivate");});}});function loadCreditDetail(domId) {$(document).on('click', ".partner-credit-detail", function() {doGetAjaxRequestHandler(context + "/getCreditDetail",function(response) {$('#' + domId).html(response);});});}