* code for task #6707.

This commit is contained in:
wangyidong
2019-12-10 15:52:57 +08:00
parent 52460dd80d
commit f8c530b3ee
+1 -2
View File
@@ -1,7 +1,6 @@
$(document).ready(function()
{
var $pre = $('.repoCode .content pre');
var rowTip = $('#rowTip').html();
if($pre.length)
{
@@ -12,7 +11,7 @@ $(document).ready(function()
for(var i = 0 ; i < arr.length ; i++)
{
line = i + 1;
code += "<tr data-line='" + line +"'><th id='L" + line + "'><div class='comment-btn view'><span class='icon-wrapper'><i class='icon-plus'></i></span></div>" + line + "</th><td>" + (arr[i] || '&nbsp;') + rowTip + "</td></tr>";
code += "<tr data-line='" + line +"'><th id='L" + line + "'><div class='comment-btn view'><span class='icon-wrapper'><i class='icon-plus'></i></span></div>" + line + "</th><td>" + (arr[i] || '&nbsp;') + "</td></tr>";
}
$pre.html("<table><tbody>" + code + "</tbody></table>");
}