This commit is contained in:
parent
b962b8c4cc
commit
ff44bb6800
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue