Created
August 3, 2011 14:24
-
-
Save rissajeanne/1122760 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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