move mention-/posttgroup-button to navbar
This commit is contained in:
parent
3b5c128f95
commit
e28c21cc72
1 changed files with 14 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue