Changes
3 changed files (+20/-13)
-
-
@@ -49,3 +49,16 @@ export function initRepoCommitLastCommitLoader() {}); }); } export function initCommitStatuses() { $('.commit-statuses-trigger').each(function () { const positionRight = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0; const popupPosition = positionRight ? 'right center' : 'left center'; $(this) .popup({ on: 'click', lastResort: popupPosition, // prevent error message "Popup does not fit within the boundaries of the viewport" position: popupPosition, }); }); }
-
-
-
@@ -423,18 +423,6 @@ export function initRepository() {} // Commit statuses $('.commit-statuses-trigger').each(function () { const positionRight = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0; const popupPosition = positionRight ? 'right center' : 'left center'; $(this) .popup({ on: 'click', lastResort: popupPosition, // prevent error message "Popup does not fit within the boundaries of the viewport" position: popupPosition, }); }); // File list and commits if ($('.repository.file.list').length > 0 || $('.branch-dropdown').length > 0 || $('.repository.commits').length > 0 || $('.repository.release').length > 0) {
-
-
-
@@ -38,7 +38,11 @@ import {initRepoPullRequestMergeInstruction, initRepoPullRequestReview, } from './features/repo-issue.js'; import {initRepoEllipsisButton, initRepoCommitLastCommitLoader} from './features/repo-commit.js'; import { initRepoEllipsisButton, initRepoCommitLastCommitLoader, initCommitStatuses, } from './features/repo-commit.js'; import { checkAppUrl, initFootLanguageMenu,
-
@@ -165,6 +169,8 @@ $(document).ready(() => {initRepoWikiForm(); initRepository(); initCommitStatuses(); initUserAuthLinkAccountView(); initUserAuthOauth2(); initUserAuthWebAuthn();
-