mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Dont use ajax for links starting with # (internal navigation).
This commit is contained in:
parent
058b3a6b6b
commit
56d0c5eaf5
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class AjaxUI {
|
||||||
public registerLinks()
|
public registerLinks()
|
||||||
{
|
{
|
||||||
// Unbind all old handlers, so the things are not executed multiple times.
|
// Unbind all old handlers, so the things are not executed multiple times.
|
||||||
$('a').not(".link-external, [data-no-ajax], .page-link").unbind('click').click(function (event) {
|
$('a').not(".link-external, [data-no-ajax], .page-link, [href^='#']").unbind('click').click(function (event) {
|
||||||
let a = $(this);
|
let a = $(this);
|
||||||
let href = $.trim(a.attr("href"));
|
let href = $.trim(a.attr("href"));
|
||||||
//Ignore links without href attr and nav links ('they only have a #)
|
//Ignore links without href attr and nav links ('they only have a #)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue