From 1bc0f97e78f92e00c9282e5d8f2b1707095a0a7c Mon Sep 17 00:00:00 2001 From: "Jacob Mansfield [root@Helix]" Date: Sun, 22 Sep 2019 19:48:13 +0100 Subject: [PATCH] Fix bug where links jump to the top of the page --- app/YtManagerApp/templates/YtManagerApp/js/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/YtManagerApp/templates/YtManagerApp/js/common.js b/app/YtManagerApp/templates/YtManagerApp/js/common.js index cfadd3d..aa2dfc5 100644 --- a/app/YtManagerApp/templates/YtManagerApp/js/common.js +++ b/app/YtManagerApp/templates/YtManagerApp/js/common.js @@ -195,6 +195,7 @@ function ajaxLink_Clicked() { csrfmiddlewaretoken: '{{ csrf_token }}' }); } + return false; } /// @@ -204,4 +205,4 @@ $(document).ready(function () { $(".ajax-link").on("click", ajaxLink_Clicked); $("#btn_sync_now").on("click", syncNow); -}); \ No newline at end of file +});