Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BDE
nk20
Commits
27aa2e9d
Commit
27aa2e9d
authored
Sep 06, 2020
by
erdnaxe
🦋
Browse files
JQuery is unable to cancel Turbolinks
parent
89b2ff52
Pipeline
#8684
passed with stages
in 12 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/note/templates/note/transaction_form.html
View file @
27aa2e9d
...
...
@@ -65,7 +65,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
<input
class=
"form-control mx-auto"
type=
"text"
id=
"source_note"
placeholder=
"{% trans "
Name
or
alias...
"
%}"
/>
<div
id=
"source_me_div"
>
<hr>
<a
class=
"btn-block btn btn-secondary"
href=
"#"
id=
"source_me"
>
<a
class=
"btn-block btn btn-secondary"
href=
"#"
id=
"source_me"
data-turbolinks=
"false"
>
{% trans "I am the emitter" %}
</a>
</div>
...
...
note_kfet/static/js/transfer.js
View file @
27aa2e9d
...
...
@@ -183,10 +183,7 @@ $(document).ready(function () {
if
(
location
.
hash
)
{
$
(
'
#type_
'
+
location
.
hash
.
substr
(
1
)).
click
()
}
else
{
type_transfer
.
click
()
}
$
(
'
#source_me
'
).
click
(
function
(
event
)
{
// Prevent TurboLinks
event
.
preventDefault
();
$
(
'
#source_me
'
).
click
(
function
()
{
if
(
LOCK
)
{
return
}
// Shortcut to set the current user as the only emitter
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment