<div id="fl-channels" class="fl-popup">
		
	<ul>
	<% unless current_user.channels.count > 0 %>
		<li>You have no channels yet.<br/><%= link_to("Add one?", new_channel_path(current_user.username), :target => "blank") %></li>
	<% else %>		
		<% current_user.channels.each do |channel| %>
			<li><%= check_box_tag(channel.title, 1, channel.facts.include?(fact), :onclick => "toggleFactForChannel(#{channel.id}, #{fact.id});") %> <%= label_tag(channel.title) %></li>
		<% end %>
			<li><%= link_to("Add another channel...", new_channel_path(current_user.username), :target => "blank") %></li>
	<% end %>
	</ul>
	
</div>
<div id="fl-channels" class="fl-popup">
		
	<ul>
	<% unless current_user.channels.count > 0 %>
		<li>You have no channels yet.<br/><%= link_to("Add one?", new_channel_path(current_user.username), :target => "blank") %></li>
	<% else %>		
		<% current_user.channels.each do |channel| %>
			<li><%= check_box_tag(channel.id, 1, channel.facts.include?(fact), :onclick => "toggleFactForChannel(#{channel.id}, #{fact.id});") %> <%= label_tag(channel.id, channel.title) %></li>
		<% end %>
			<li><%= link_to("Add another channel...", new_channel_path(current_user.username), :target => "blank") %></li>
	<% end %>
	</ul>
	
</div>
Use id as id in stead of title (channel)
Use id as id in stead of title (channel)
