in website-creator/js/connectflows.js [370:408]
function fillContactFlowTables(tab){
if(tab==1){
contactFlowsTable.clear();
for (var i=0; i< contactFlows.length; i++) {
//var value = attributes[k].value;
var value = contactFlows[i];
var a = '<a href="" onclick="getContactFlowDetails(\'' + dlgSourceAccessKey + '\',\'' + dlgSourceSecretKey + '\',\'';
//a += dlgSourceRegion + '\',\'' + dlgSourceInstance + '\',\'' + value.Id + '\');return false;">Details</>';
a += dlgSourceRegion + '\',\'' + dlgSourceInstance + '\',\'' + value.Id + '\');return false;">';
a += 'Details' +'</>'
//a += '<img src="images/openfolder.png" alt="Details">' +'</>'
var b = '<a href="" onclick="handleRenameWindow(1,\'' + value.Name +'\');return false;">';
b += 'Rename' +'</>'
//b += '<img src="images/rename.png" alt="Rename">' +'</>'
var c = '<input type="checkbox" class="chk" value="' + value.Id +'">';
var d = '<a href="" onclick="handlePushFlowWindow(\'' + value.Id +'\', \'' + value.Name +'\');return false;">';
d += 'Promote</>'
contactFlowsTable.row.add([value.Name, value.ContactFlowType, a, b, d, c]);
}
contactFlowsTable.draw();
}else{
contactFlowsTable2.clear();
for (var i=0; i< contactFlows2.length; i++) {
//var value = attributes[k].value;
var value = contactFlows2[i];
var a = '<a href="" onclick="getContactFlowDetails(\'' + dlgTargetAccessKey + '\',\'' + dlgTargetSecretKey + '\',\'';
//a += dlgTargetRegion + '\',\'' + dlgTargetInstance + '\',\'' + value.Id + '\');return false;">Details</>';
a += dlgTargetRegion + '\',\'' + dlgTargetInstance + '\',\'' + value.Id + '\');return false;">';
a += 'Details' +'</>'
//a += '<img src="images/openfolder.png" alt="Details">' +'</>'
var b = '<a href="" onclick="handleRenameWindow(2,\'' + value.Name +'\');return false;">';
b += 'Rename' +'</>'
//b += '<img src="images/rename.png" alt="Rename">' +'</>'
//var c = '<input type="checkbox" class="chk" value="' + value.Id +'">';
contactFlowsTable2.row.add([value.Name, value.ContactFlowType, a, b]);
}
contactFlowsTable2.draw();
}
}