Skip to content

Commit

Permalink
Data attribute channel_id is now channel-id
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <[email protected]>
  • Loading branch information
HashNuke committed Apr 11, 2012
1 parent 38b7377 commit 96c096d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Kandan.Helpers.Channels
if $(document).data('active-channel-id') == undefined
return $("#kandan .ui-tabs-panel")
.eq(@selectedTab())
.data("channel_id")
.data("channel-id")
else
return $(document).data("active-channel-id")

Expand Down Expand Up @@ -59,7 +59,7 @@ class Kandan.Helpers.Channels
@getChannelIdByTabIndex: (tabIndex)->
$("#kandan .ui-tabs-panel")
.eq(tabIndex)
.data("channel_id")
.data("channel-id")

@getTabIndexByChannelId: (channelId)->
$("#channels-#{channelId}").prevAll("div").length
Expand Down Expand Up @@ -128,7 +128,7 @@ class Kandan.Helpers.Channels
activityAttributes["created_at"] = new Date()
for el in $channelElements
$(el).append(@newActivityView(activityAttributes).render().el)
@flushActivities($(el).closest(".ui-widget-content").data("channel_id"))
@flushActivities($(el).closest(".ui-widget-content").data("channel-id"))
@setPaginationData(activityAttributes.channel_id)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Kandan.Views.ChannelPane extends Backbone.View

setIdAndData: (container)->
$(container).attr "id", "channels-#{@options.channel.get("id")}"
$(container).data "channel_id", @options.channel.get('id')
$(container).data "channel-id", @options.channel.get('id')

paginatedActivitiesView: ()->
view = new Kandan.Views.PaginatedActivities({channel: @options.channel})
Expand Down

0 comments on commit 96c096d

Please sign in to comment.