This commit is contained in:
杨树明775174143 2018-08-16 14:50:58 +08:00
parent b962b8c4cc
commit ff44bb6800
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ function submit_annotation(file_id, line_num, content) {
$(".source-addno-panel").remove(); $(".source-addno-panel").remove();
// show_annotation(file_id,line_num); // show_annotation(file_id,line_num);
//将注释添加到当前行的上一行 //将注释添加到当前行的上一行
var contenthtml ='<div class="linenum"></div>'+'<div class="sourcecode">'+'<pre class="mypre newaddmypre hljs-comment ' + file_id+line_num + '">'+"//"+content+'</pre>'+'</div>'+'<div class="linestatus"></div>'; var contenthtml ='<div class="linenum"></div>'+'<div class="sourcecode">'+'<pre class="mypre newmypre hljs-comment ' + file_id+line_num + '">'+"//"+content+'</pre>'+'</div>'+'<div class="linestatus"></div>';
var html = '<div class="codeline codelinebox">'+contenthtml+'</div>'; var html = '<div class="codeline codelinebox">'+contenthtml+'</div>';
var id=file_id+'_'+"L"+line_num; var id=file_id+'_'+"L"+line_num;
$("#"+id).before(html) $("#"+id).before(html)