Skip to content

Instantly share code, notes, and snippets.

@rissajeanne
Created August 3, 2011 14:24
Show Gist options
  • Save rissajeanne/1122760 to your computer and use it in GitHub Desktop.
Save rissajeanne/1122760 to your computer and use it in GitHub Desktop.
linkClick : function(ev) {
ev.preventDefault();
var breadcrumb = this.collection.getByCid($(ev.currentTarget).data('cid'));
this.trigger('breadcrumb:click', breadcrumb);
if (breadcrumb.get('slug') === 'home') {
window.ABS.spi.leftSidebar.makePanelActive('welcome');
if ($('.tools-nav li').hasClass('active')) {
$('.tools-nav li').removeClass('active');
}
else if ($('.actions li').hasClass('active')) {
$('.actions li').removeClass('active');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment