Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
(finish user dropdown) |
|||
Line 11: | Line 11: | ||
if ($('#pt-logout').length){ | if ($('#pt-logout').length){ | ||
// login | // login | ||
- | + | $('#nav-login').text('User: ' + $('#pt-userpage').text()).append('<b class="caret"></b>'); | |
- | $('#nav-login').text('User: ' + $('#pt-userpage').text()).append('<b class="caret"></b>' | + | |
$('#nav-edit').attr('href',$('#menubar.left-menu > ul > li > a[href$="edit"]').attr('href')); | $('#nav-edit').attr('href',$('#menubar.left-menu > ul > li > a[href$="edit"]').attr('href')); | ||
$('#nav-history').attr('href',$('#menubar.left-menu > ul > li > a[href$="history"]').attr('href')); | $('#nav-history').attr('href',$('#menubar.left-menu > ul > li > a[href$="history"]').attr('href')); | ||
$('#nav-logout').attr('href',$('#pt-logout > a').attr('href')); | $('#nav-logout').attr('href',$('#pt-logout > a').attr('href')); | ||
+ | $('.dropdown-toggle').dropdown(); | ||
}else{ | }else{ | ||
// not login | // not login |