@@ -46,7 +46,7 @@ class Kandan.Helpers.Channels
46
46
$channelActivities.children().first().remove()
47
47
oldest = $channelActivities.children().first().data("activity_id")
48
48
$channelActivities.prev().data("oldest", oldest)
49
- @channel_pagination_el(channelId).show()
49
+ @channel_pagination_el(channelId).show()
50
50
51
51
52
52
@confirmAndDeleteChannel: (channel, tabIndex)->
@@ -74,14 +74,9 @@ class Kandan.Helpers.Channels
74
74
deleted = deleted || false
75
75
channelId = @getChannelIdByTabIndex(tabIndex)
76
76
throw "NO CHANNEL ID" if channelId == 'undefined'
77
-
78
77
channel = new Kandan.Models.Channel({id: channelId})
79
78
return @confirmAndDeleteChannel(channel, tabIndex) if not deleted
80
79
81
- # NOTE this is for participating users who do not require confirmation
82
- console.log "TAB INDEX", tabIndex
83
- $("#kandan").tabs("remove", tabIndex)
84
-
85
80
86
81
@channelExists: (channelId)->
87
82
return true if $("#channels-#{channelId}").length > 0
@@ -91,7 +86,7 @@ class Kandan.Helpers.Channels
91
86
@createChannelArea: (channel)->
92
87
channelArea = "#channels-#{channel.get('id')}"
93
88
totalTabs = $("#kandan").tabs("length")
94
- $createTab = $(". create_channel").parents('li').detach()
89
+ $createTab = $("# create_channel").parents('li').detach()
95
90
$("#kandan").tabs('add', channelArea, "#{channel.get("name")}", totalTabs)
96
91
$createTab.appendTo('ul.ui-tabs-nav')
97
92
view = new Kandan.Views.ChannelPane({channel: channel})
0 commit comments