mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
removed server overhead for paste preview data
This commit is contained in:
parent
699c819387
commit
768fb6f2df
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ def event_stream_getImportantPasteByModule(module_name):
|
||||||
data["module"] = module_name
|
data["module"] = module_name
|
||||||
data["index"] = index
|
data["index"] = index
|
||||||
data["path"] = path
|
data["path"] = path
|
||||||
data["content"] = content[0:content_range].replace("\"", "\'").replace("\r", " ").replace("\n", " ")
|
data["content"] = content[0:content_range]
|
||||||
data["linenum"] = paste.get_lines_info()[0]
|
data["linenum"] = paste.get_lines_info()[0]
|
||||||
data["date"] = curr_date
|
data["date"] = curr_date
|
||||||
data["char_to_display"] = max_preview_modal
|
data["char_to_display"] = max_preview_modal
|
||||||
|
|
|
@ -41,7 +41,7 @@ function deploy_source() {
|
||||||
"<a target=\"_blank\" href=\"{{ url_for('showsavedpaste') }}?paste="+feed.path+"&num="+feed.index+"\"> "+ feed.path +"</a>",
|
"<a target=\"_blank\" href=\"{{ url_for('showsavedpaste') }}?paste="+feed.path+"&num="+feed.index+"\"> "+ feed.path +"</a>",
|
||||||
feed.date,
|
feed.date,
|
||||||
feed.linenum,
|
feed.linenum,
|
||||||
"<p><span class=\"glyphicon glyphicon-info-sign\" data-toggle=\"tooltip\" data-placement=\"left\" title=\""+feed.content+"\"></span> <button type=\"button\" class=\"btn-link\" data-num=\""+feed.index+"\" data-toggle=\"modal\" data-target=\"#mymodal\" data-url=\"{{ url_for('showsavedpaste') }}?paste="+feed.path+"&num="+feed.index+"\" data-path=\""+feed.path+"\"><span class=\"fa fa-search-plus\"></span></button></p>"
|
"<p><span class=\"glyphicon glyphicon-info-sign\" data-toggle=\"tooltip\" data-placement=\"left\" title=\""+feed.content.replace(/\"/g, "\'").replace(/\r/g, "\'").replace(/\n/g, "\'")+"\"></span> <button type=\"button\" class=\"btn-link\" data-num=\""+feed.index+"\" data-toggle=\"modal\" data-target=\"#mymodal\" data-url=\"{{ url_for('showsavedpaste') }}?paste="+feed.path+"&num="+feed.index+"\" data-path=\""+feed.path+"\"><span class=\"fa fa-search-plus\"></span></button></p>"
|
||||||
] ).draw( false );
|
] ).draw( false );
|
||||||
$("#myTable_"+moduleName).attr('data-numElem', curr_numElem+1);
|
$("#myTable_"+moduleName).attr('data-numElem', curr_numElem+1);
|
||||||
if(feed.finished) {
|
if(feed.finished) {
|
||||||
|
|
Loading…
Reference in a new issue