We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f81e2 commit 3726429Copy full SHA for 3726429
app/assets/javascripts/backbone/helpers/channels.js.coffee
@@ -81,17 +81,12 @@ class Kandan.Helpers.Channels
81
82
@deleteChannelByTabIndex: (tabIndex, deleted)->
83
# gotcha, 0 index being passed a natural index from the html views
84
- #tabIndex = tabIndex-1
85
- console.log("deleteChannelByTabIndex", tabIndex);
86
deleted = deleted || false
87
channelId = @getChannelIdByTabIndex(tabIndex)
88
if channelId == 'undefined'
89
throw "NO CHANNEL ID";
90
- console.log("deleteing channelId", channelId);
91
channel = new Kandan.Models.Channel({id: channelId})
92
return @confirmAndDeleteChannel(channel, tabIndex) if not deleted
93
- console.log "TAB INDEX", tabIndex
94
- $("#kandan").tabs("remove", tabIndex)
95
96
97
@channelExists: (channelId)->
0 commit comments