##// END OF EJS Templates
files: don't format 0 revision in select pickers
marcink -
r3707:da37aa49 new-ui
parent child Browse files
Show More
@@ -206,7 +206,9 b''
206 206 tmpl = tmpl.concat(escapeHtml(commit_ref.text));
207 207 }
208 208 var idx = commit_ref.idx || 0;
209 tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
209 if (idx !== 0) {
210 tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
211 }
210 212 return tmpl
211 213 };
212 214
@@ -397,7 +399,9 b''
397 399 }
398 400
399 401 var idx = commit_ref.idx || 0;
400 tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
402 if (idx !== 0) {
403 tmpl = tmpl.concat('<span class="select-index-number">r{0}</span>'.format(idx));
404 }
401 405 return tmpl
402 406 };
403 407
General Comments 0
You need to be logged in to leave comments. Login now