Merge pull request #9602 from kraktus/fix_mod_notes_diff_users

Make inquiry note `user` dependent.
pull/9601/head^2
Thibault Duplessis 2021-08-22 13:20:32 +02:00 committed by GitHub
commit c1de501772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
$(function () {
const noteStore = lichess.storage.make('inquiry-note');
const usernameNoteStore = lichess.storage.make('inquiry-note-user');
const username = $('#inquiry .meat > .user-link').text().split(' ')[0];
if (username != usernameNoteStore.get()) noteStore.remove();
usernameNoteStore.set(username);
const noteTextArea = $('#inquiry .notes').find('textarea')[0];
$('#inquiry .notes').on('mouseenter', () => {