Merge branch 'notes' of github.com:ornicar/lila into notes

* 'notes' of github.com:ornicar/lila:
  Fix mouse-over display bug
  Notes seem prod ready
This commit is contained in:
Thibault Duplessis 2014-12-07 18:28:12 +01:00
commit 13ef919083
2 changed files with 7 additions and 8 deletions

View file

@ -976,11 +976,12 @@ var storage = {
$notes = $('#notes');
$notes.on('change', function() {
$.post({url: '/' + game.id + '/note', data:{text: $notes.val()}});
});
var noteText = lichess.round.data.note; //|| lichess.analysis.data.note || ''; // <- That makes it fail
$notes.val(noteText);
var data = lichess.round.data || liches.analysis.data;
$notes.on('change keyup paste', $.fp.debounce(function() {
$.post('/' + data.game.id + '/note', {text: $notes.val()});
}, 1000));
$notes.val(data.note || '');
},
append: function(msg) {
this._appendHtml(this._render(msg));

View file

@ -180,9 +180,7 @@
overflow-y: hidden;
border: 1px solid #ccc;
padding: 3px;
}
#tournament_side:hover {
overflow-y: auto;
overflow: auto;
}
#tournament_side div.pairings {
text-align: center;