files: don't format 0 revision in select pickers
This commit is contained in:
parent
9a47088b4a
commit
ba926f35d4
1 changed files with 6 additions and 2 deletions
|
|
@ -206,7 +206,9 @@
|
|||
tmpl = tmpl.concat(escapeHtml(commit_ref.text));
|
||||
}
|
||||
var idx = commit_ref.idx || 0;
|
||||
tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
|
||||
if (idx !== 0) {
|
||||
tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
|
||||
}
|
||||
return tmpl
|
||||
};
|
||||
|
||||
|
|
@ -397,7 +399,9 @@
|
|||
}
|
||||
|
||||
var idx = commit_ref.idx || 0;
|
||||
tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
|
||||
if (idx !== 0) {
|
||||
tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
|
||||
}
|
||||
return tmpl
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue