mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Protect switch_view_mode with a CSRF token
This commit is contained in:
parent
6fa61c0f9c
commit
e162408139
5 changed files with 27 additions and 21 deletions
|
@ -228,10 +228,10 @@ $(document).ready(() => {
|
|||
});
|
||||
});
|
||||
}
|
||||
$('form[name="form_mass_action"] input[name="tags"]').on('keydown', (e) => {
|
||||
$('input[name="tags"][form="form_mass_action"]').on('keydown', (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
$('form[name="form_mass_action"] button[name="tag"]').trigger('click');
|
||||
$('button[name="tag"][form="form_mass_action"]').trigger('click');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue