function backupContactFlows()

in website-creator/js/connectflows.js [245:267]


function backupContactFlows(listBox){
	var lb;
	if(listBox == 1)
		lb = contactFlowsTable;
	else
		lb = contactFlowsTable2

	var rowcollection =  lb.$(".chk:checked", {"page": "all"});
	//var flows = [];
	handleWindow(true, '');
	rowcollection.each(function(index,elem){
	    //flow.push($(elem).val());
		var flowId = $(elem).val();
		if(listBox == 1){
			backupContactFlow(dlgSourceAccessKey, dlgSourceSecretKey, dlgSourceRegion, dlgSourceInstance, dlgSourceBackupDDB, flowId, listBox);
		}else{
			backupContactFlow(dlgTargetAccessKey, dlgTargetSecretKey, dlgTargetRegion, dlgTargetInstance, dlgTargetBackupDDB, flowId, listBox);
		}
		if((rowcollection.length-1) == index)
			handleWindow(false, '');
	});	
	
}