From 88debb4421f4710bca125056ceece1991a96e410 Mon Sep 17 00:00:00 2001 From: ievgenii vdovenko Date: Tue, 6 Jan 2026 18:00:46 +0100 Subject: [PATCH] feature: fix typo --- rhodecode/public/js/src/rhodecode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rhodecode/public/js/src/rhodecode.js b/rhodecode/public/js/src/rhodecode.js index a183cee8..06c866ac 100644 --- a/rhodecode/public/js/src/rhodecode.js +++ b/rhodecode/public/js/src/rhodecode.js @@ -333,7 +333,7 @@ var tooltipActivate = function () { }; // Formatting values in a Select2 dropdown of commit references -var formatSelect2SelectionRefs = function(commit_ref, tripTextFn){ +var formatSelect2SelectionRefs = function(commit_ref, trimTextFn){ var tmpl = ''; if (!commit_ref.text || commit_ref.type === 'sha'){ return commit_ref.text; @@ -345,8 +345,8 @@ var formatSelect2SelectionRefs = function(commit_ref, tripTextFn){ } else if (commit_ref.type === 'book'){ tmpl = tmpl.concat(' '); } - if (tripTextFn !== undefined) { - return tmpl.concat(tripTextFn(escapeHtml(commit_ref.text))); + if (trimTextFn !== undefined) { + return tmpl.concat(trimTextFn(escapeHtml(commit_ref.text))); } return tmpl.concat(escapeHtml(commit_ref.text));