Skip to content

Commit

Permalink
deletes appear to be restored
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzettler committed Apr 5, 2012
1 parent f2f81e2 commit 3726429
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/assets/javascripts/backbone/helpers/channels.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,12 @@ class Kandan.Helpers.Channels

@deleteChannelByTabIndex: (tabIndex, deleted)->
# gotcha, 0 index being passed a natural index from the html views
#tabIndex = tabIndex-1
console.log("deleteChannelByTabIndex", tabIndex);
deleted = deleted || false
channelId = @getChannelIdByTabIndex(tabIndex)
if channelId == 'undefined'
throw "NO CHANNEL ID";
console.log("deleteing channelId", channelId);
channel = new Kandan.Models.Channel({id: channelId})
return @confirmAndDeleteChannel(channel, tabIndex) if not deleted
console.log "TAB INDEX", tabIndex
$("#kandan").tabs("remove", tabIndex)


@channelExists: (channelId)->
Expand Down

0 comments on commit 3726429

Please sign in to comment.