Rev 24465 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$(document).on('click', ".live_demo_billing", function() {currentFofoId = 0;loaddemolist("main-content");});$(document).on('click', ".live_demo",function(){loaddemolist("main-content");});$(document).on('click', ".approve-billing",function(){if (confirm("Are you sure you want to Approve the billing") == true) {serial =$(this).data("serial");doPostAjaxRequestHandler(context + "/enableliveDemoSerailNumber?serial_number="+serial,function(response) {if (response == 'true') {alert("successfully Approved");loaddemolist("main-content");}});}});});function loaddemolist(domId){console.log(currentFofoId)var url = "/getDemolistbyfofoId?fofoId=" + currentFofoId;doAjaxRequestHandler(context + url, "GET", function(response) {$('#' + domId).html(response);});}