summaryrefslogblamecommitdiffstats
path: root/web/js/labitrack.d/20-topbar.js
blob: fdebd6d1b578ca1b68e19bdabdb0340f98127d07 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                       
(function(){
	λ.topbar = topbar = {};
	topbar.update = function(){
		console.log('topbar update');
		$('ul.nav li a').each(function(){
			if (this.href === window.location.href) {
				$(this).parent().addClass('active');
			} else {
				$(this).parent().removeClass('active');
			}
		});
	};
}());