Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
m |
(finish user dropdown) |
||
Line 12: | Line 12: | ||
// login | // login | ||
$('.dropdown-toggle').dropdown(); | $('.dropdown-toggle').dropdown(); | ||
- | $('#nav-login').text($('#pt-userpage').text()).append('<b class="caret"></b>'); | + | $('#nav-login').text('User: ' + $('#pt-userpage').text()).append('<b class="caret"></b>').attr('href',$('#pt-userpage>a').attr('href')); |
$('#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')); | ||
Line 19: | Line 19: | ||
// not login | // not login | ||
$('#nav-usermenu').remove(); | $('#nav-usermenu').remove(); | ||
- | $('#nav-login').attr('href',$('#pt-login > a').attr('href')); | + | $('#nav-login').attr('href',$('#pt-login>a').attr('href')).removeAttr('data-toggle'); |
} | } | ||