From 4bc0358e9a33dd0d04c4fadc4789fb263201cb39 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 10 Jun 2013 00:01:04 +0200 Subject: [PATCH] complete dual lobby --- public/javascripts/big.js | 6 +++--- public/stylesheets/common.css | 1 - public/stylesheets/dark.css | 17 +++++++++++------ todo | 1 + 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/public/javascripts/big.js b/public/javascripts/big.js index 4fd13eb781..b48d0f148f 100644 --- a/public/javascripts/big.js +++ b/public/javascripts/big.js @@ -1912,7 +1912,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars }); $.lichessOpeningPreventClicks = function() { - $('div.lichess_overboard, #hooks_wrap').hide(); + $('#hooks_table, #hooks_chart').hide(); }; // hooks @@ -1932,6 +1932,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars var $hooks = $wrap.find('#hooks'); var $noHook = $wrap.find('.no_hook'); var $canvas = $wrap.find('.canvas'); + var $table = $wrap.find('#hooks_table'); var $tbody = $table.find('tbody'); var $userTag = $('#user_tag'); var isRegistered = $userTag.length > 0 @@ -2093,8 +2094,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars $.powerTip.destroy($(this)); $(this).remove(); }); - // TODO uncomment - // $table.find('.' + hook.id).remove(); + $table.find('.' + hook.id).remove(); } function drawHooks() { diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index 9835e2ee4f..0484843f51 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -1480,7 +1480,6 @@ div.game_config div.color_submits button.random span { overflow: hidden; } #hooks_table th { - /* cursor: pointer; */ border-bottom: 1px solid #ccc; padding: 10px 12px; } diff --git a/public/stylesheets/dark.css b/public/stylesheets/dark.css index 965f77aeda..4572d6c9e8 100644 --- a/public/stylesheets/dark.css +++ b/public/stylesheets/dark.css @@ -105,7 +105,10 @@ body.dark div.user_show div.mod_zone, body.dark div.user_show div.user-infos, body.dark div.game_config input[type="text"], body.dark #powerTip, -body.dark #powerTip > .title +body.dark #powerTip > .title, +body.dark #hooks_table th, +body.dark #hooks_table td, +body.dark #hooks_wrap > div.tabs > a { border-color: #444; } @@ -117,10 +120,10 @@ body.dark #timeline > .entry { body.dark .ui-slider, body.dark div.progressbar, body.dark #translation_call div.progressbar, -body.dark #top div.themepicker.shown div.theme:hover -{ +body.dark #top div.themepicker.shown div.theme:hover { background-color: #505050; } +body.dark #hooks_wrap > div.tabs > a, body.dark #top div.auth .links a:hover, body.dark #top ul.language_links a:hover, body.dark #top ul.language_links a.current @@ -147,7 +150,6 @@ body.dark #timeline time body.dark #site_title span.extension { color: #707070; } - body.dark #top a.goto_nav:hover, body.dark #top a.toggle:hover, body.dark #top a.bgpicker:hover, @@ -165,6 +167,7 @@ body.dark #top span.new_messages { background: #606060; } +body.dark #hooks_table tr:nth-child(odd) td, body.dark div.lichess_chat .lichess_messages, body.dark div.undertable_inner, body.dark div.lichess_goodies div.box, @@ -195,8 +198,10 @@ body.dark #hook_filter td > label:hover { background: #000; } -body.dark div.undertable tr:nth-child(even) td -{ +body.dark div.undertable tr:nth-child(even) td, +body.dark #hooks_wrap, +body.dark #hooks_wrap > div.tabs > a:hover, +body.dark #hooks_wrap > div.tabs > a.active { background: #303030; } diff --git a/todo b/todo index c9ec01329f..dbbd967d2b 100644 --- a/todo +++ b/todo @@ -69,6 +69,7 @@ allow to filter anon add fast tooltips to plots replace plot with watch plot when game starts real rematch against AI +lobby table sort ---