Skip to content

Commit

Permalink
Deletes default template setting for tabs. Lets jquery assume tab tem…
Browse files Browse the repository at this point in the history
…plate

Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Mar 26, 2012
1 parent 31df912 commit b756870
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/assets/javascripts/backbone/kandan.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,13 @@ window.Kandan =
chatbox = new Kandan.Views.Chatbox()
$(".main-area").append(chatbox.render().el)
$('#channels').tabs({
# tabTemplate: '''
# <li>
# <a href="#{href}">#{label}</a>
# Dude<span class="ui-icon ui-icon-close">Remove Tab</span>
# </li>
# ''',

select: (event, ui)->
$(document).data('active_channel_id',
Kandan.Helpers.Channels.get_channel_id_from_tab_index(ui.index))
console.log "channel changed to index", ui.index
Kandan.Data.Channels.run_callbacks('change')
})
$("#channels").tabs('option', 'tabTemplate', '''
<li>
<a href="#{href}">#{label}</a>
<span class="ui-icon ui-icon-close">x</span>
</li>
''')


Kandan.Widgets.init_all()
})
Expand Down

0 comments on commit b756870

Please sign in to comment.