Added support of html formatting in search result dynamic loading table

pull/95/head
Mokaddem 2016-10-28 09:48:22 +02:00
parent 4be62a4e2d
commit f51808d914
1 changed files with 2 additions and 2 deletions

View File

@ -153,10 +153,10 @@
for(i=0; i<data.path_array.length; i++) {
search_table.row.add( [
i+offset,
data.path_array[i],
"<a target=\"_blank\" href=\"{{ url_for('showsavedpaste') }}?paste="+data.path_array[i]+"&num="+i+"\"> "+ data.path_array[i] +"</a>",
data.date_array[i],
data.size_array[i],
data.preview_array[i]
"<p><span class=\"glyphicon glyphicon-info-sign\" data-toggle=\"tooltip\" data-placement=\"left\" title=\""+data.preview_array[i]+"\"></span> <button type=\"button\" class=\"btn-link\" data-num=\""+i+"\" data-toggle=\"modal\" data-target=\"#mymodal\" data-url=\"{{ url_for('showsavedpaste') }}?paste=\""+data.path_array[i]+"\"&num=\""+i+"\" data-path=\""+data.path_array[i]+"\"><span class=\"fa fa-search-plus\"></span></button></p>"
] ).draw( false );
}
if (data.moreData == true)