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