Stop storing the 'Add Channel' channel, since it's hardcoded in.

This commit is contained in:
Matt Lee 2014-10-24 20:16:23 -07:00
parent 31b6e7971c
commit 08570fe3dc
1 changed files with 9 additions and 6 deletions

View File

@ -395,13 +395,16 @@ $.each(channelTypes, function(i, channelType) {
$('#' + channelType + '-channels').on('submit', function() {
var feed = [],
postData;
$('#' + channelType + '-channels li.channel').each(function() {
var chan = $(this),
data = {
'channel' : chan.find('.name').text(),
'feed' : chan.attr('data-feed')
};
var chan = $(this);
var data = {
'channel' : chan.find('.name').text(),
'feed' : chan.attr('data-feed'),
};
if (typeof data.feed === 'undefined') {
return;
}
if (chan.find('.sponsored input').is(':checked')) data.owner = 'sponsor';