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:
commit
13ef919083
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue