From b004f0001c2e828ea3bef3d42025aefef374386f Mon Sep 17 00:00:00 2001 From: Andrii V Date: Wed, 28 Jan 2026 17:33:49 +0100 Subject: [PATCH] Fixed some potential scope issues with jQuery and window --- rhodecode/public/js/src/rhodecode/utils/trimText.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rhodecode/public/js/src/rhodecode/utils/trimText.js b/rhodecode/public/js/src/rhodecode/utils/trimText.js index ff9e2014..ac11e3b3 100644 --- a/rhodecode/public/js/src/rhodecode/utils/trimText.js +++ b/rhodecode/public/js/src/rhodecode/utils/trimText.js @@ -140,4 +140,8 @@ function trimRepoTitleName() { let symbolsCnt = autoMaxLenForAnchor($repoNameTitle); const trimmedName = truncateMiddle(repoName, symbolsCnt); $repoNameTitle.text(arr[0] + ": " + trimmedName); -} \ No newline at end of file +} + +// Export to global scope for use in templates +window.applyMiddleCut = applyMiddleCut; +window.trimRepoTitleName = trimRepoTitleName; \ No newline at end of file