Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usernotes manager buttons not working #426

Merged
merged 2 commits into from Dec 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions extension/data/modules/usernotes.js
Expand Up @@ -849,7 +849,7 @@ function usernotes () {
});

// Update user status.
$body.find('.tb-un-refresh').on('click', async function () {
$body.on('click', '.tb-un-refresh', async function () {
const $this = $(this),
user = $this.attr('data-user'),
$userSpan = $this.parent().find('.user');
Expand All @@ -865,7 +865,7 @@ function usernotes () {
});

// Delete all notes for user.
$body.find('.tb-un-delete').on('click', function () {
$body.on('click', '.tb-un-delete', async function () {
const $this = $(this),
user = $this.attr('data-user'),
$userSpan = $this.parent();
Expand All @@ -882,7 +882,7 @@ function usernotes () {
});

// Delete individual notes for user.
$body.find('.tb-un-notedelete').on('click', function () {
$body.on('click', '.tb-un-notedelete', async function () {
const $this = $(this),
user = $this.attr('data-user'),
note = $this.attr('data-note'),
Expand Down Expand Up @@ -1105,7 +1105,7 @@ function usernotes () {
self.printProfiles();
});

$body.on('click', '.tb-un-editor > .tb-window-wrapper > .tb-window-header .close', () => {
$body.on('click', '.tb-un-editor .tb-window-header .close', () => {
$('.tb-un-editor').remove();
$body.css('overflow', 'auto');
});
Expand Down