move mention-/posttgroup-button to navbar

This commit is contained in:
Jakobus Schürz 2023-10-05 23:19:20 +02:00
parent ebafb4cae6
commit 6698e27300

View file

@ -80,6 +80,20 @@ $(document).ready(function () {
target: ".flex-target", 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 // add Jot button to the second navbar
let $jotButton = $("#jotOpen"); let $jotButton = $("#jotOpen");
if ($jotButton.length) { if ($jotButton.length) {