feature: fix typo
This commit is contained in:
parent
8123a42f8a
commit
88debb4421
1 changed files with 3 additions and 3 deletions
|
|
@ -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('<i class="icon-bookmark"></i> ');
|
||||
}
|
||||
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue