From 6698e273003abe10033967e6ba0ab0113b2ea8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 5 Oct 2023 23:19:20 +0200 Subject: [PATCH] move mention-/posttgroup-button to navbar --- view/theme/frio/js/theme.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index ef71b8c1d0..f1585b553a 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -80,6 +80,20 @@ $(document).ready(function () { target: ".flex-target", }); + // add mention-link button to the second navbar + let $mentionButton = $("#mention-link-button"); + if ($mentionButton.length) { + $mentionButton.appendTo("#topbar-second > .container > #navbar-button").css("padding", "2"); + $("#mention-link").addClass("btn-sm "); + $("#mention-link > span i").addClass("fa-2x"); + if ($mentionButton.hasClass("modal-open")) { + $mentionButton.on("click", function (e) { + e.preventDefault(); + jotShow(); + }); + } + } + // add Jot button to the second navbar let $jotButton = $("#jotOpen"); if ($jotButton.length) {