From 27aa2e9da8c6293dde5130e132764333cca4636b Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 6 Sep 2020 21:41:33 +0200 Subject: [PATCH] JQuery is unable to cancel Turbolinks --- apps/note/templates/note/transaction_form.html | 2 +- note_kfet/static/js/transfer.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/note/templates/note/transaction_form.html b/apps/note/templates/note/transaction_form.html index 3f58b793..f5ff0b73 100644 --- a/apps/note/templates/note/transaction_form.html +++ b/apps/note/templates/note/transaction_form.html @@ -65,7 +65,7 @@ SPDX-License-Identifier: GPL-2.0-or-later

- + {% trans "I am the emitter" %}
diff --git a/note_kfet/static/js/transfer.js b/note_kfet/static/js/transfer.js index 94190da5..db9cf9ac 100644 --- a/note_kfet/static/js/transfer.js +++ b/note_kfet/static/js/transfer.js @@ -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