|
|
@@ -156,36 +156,12 @@ Crowi.highlightSelectedSection = function(hash) {
|
|
|
|
|
|
$(() => {
|
|
|
const pageId = $('#content-main').data('page-id');
|
|
|
- // const revisionId = $('#content-main').data('page-revision-id');
|
|
|
- // const revisionCreatedAt = $('#content-main').data('page-revision-created');
|
|
|
- // const currentUser = $('#content-main').data('current-user');
|
|
|
const isSeen = $('#content-main').data('page-is-seen');
|
|
|
|
|
|
$('[data-toggle="popover"]').popover();
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
$('[data-tooltip-stay]').tooltip('show');
|
|
|
|
|
|
- $('#toggle-crowi-sidebar').click((e) => {
|
|
|
- const $body = $('body');
|
|
|
- if ($body.hasClass('aside-hidden')) {
|
|
|
- $body.removeClass('aside-hidden');
|
|
|
- $.cookie('aside-hidden', 0, { expires: 30, path: '/' });
|
|
|
- }
|
|
|
- else {
|
|
|
- $body.addClass('aside-hidden');
|
|
|
- $.cookie('aside-hidden', 1, { expires: 30, path: '/' });
|
|
|
- }
|
|
|
- return false;
|
|
|
- });
|
|
|
-
|
|
|
- if ($.cookie('aside-hidden') === 1) {
|
|
|
- $('body').addClass('aside-hidden');
|
|
|
- }
|
|
|
-
|
|
|
- $('.copy-link').on('click', function() {
|
|
|
- $(this).select();
|
|
|
- });
|
|
|
-
|
|
|
if (pageId) {
|
|
|
|
|
|
if (!isSeen) {
|