|
|
@@ -154,27 +154,6 @@ Crowi.highlightSelectedSection = function(hash) {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-$(() => {
|
|
|
- const pageId = $('#content-main').data('page-id');
|
|
|
- const isSeen = $('#content-main').data('page-is-seen');
|
|
|
-
|
|
|
- $('[data-toggle="popover"]').popover();
|
|
|
- $('[data-toggle="tooltip"]').tooltip();
|
|
|
- $('[data-tooltip-stay]').tooltip('show');
|
|
|
-
|
|
|
- if (pageId) {
|
|
|
-
|
|
|
- if (!isSeen) {
|
|
|
- $.post('/_api/pages.seen', { page_id: pageId }, (res) => {
|
|
|
- // ignore unless response has error
|
|
|
- if (res.ok && res.seenUser) {
|
|
|
- $('#content-main').data('page-is-seen', 1);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- } // end if pageId
|
|
|
-});
|
|
|
-
|
|
|
window.addEventListener('load', (e) => {
|
|
|
const { appContainer } = window;
|
|
|
|