fix top menu auth box

This commit is contained in:
Thibault Duplessis 2012-06-18 10:50:19 +02:00
parent d65a7fdf23
commit 96131eae4c
2 changed files with 11 additions and 8 deletions

View file

@ -127,14 +127,16 @@ $(function() {
}).find('div.pager').hide();
});
$('#top a.toggle').click(function() {
var $p = $(this).parent();
$p.toggleClass('shown');
setTimeout(function() {
$('html').one('click', function() {
$p.removeClass('shown');
});
}, 10);
$('#top a.toggle').each(function() {
var $this = $(this);
var $p = $this.parent();
$this.click(function() {
$p.toggleClass('shown');
setTimeout(function() {
$p.click(function(e) { e.stopPropagation(); });
$('html').one('click', function(e) { $p.removeClass('shown'); });
}, 10);
});
});
$('#lichess_translation_form_code').change(function() {

1
todo
View file

@ -14,3 +14,4 @@ tournaments http://www.chess.com/tournaments/help.html
cheater slash timeline
best game(s) to watch
use twitter tooltip instead of tipsy http://twitter.github.com/bootstrap/javascript.html#tooltip
add readme for tsinnema