.
This commit is contained in:
@@ -102,12 +102,12 @@
|
||||
{% block js %}
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.css"/>
|
||||
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.11.3/r-2.2.9/datatables.min.js"></script>
|
||||
|
||||
<script>
|
||||
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
||||
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
||||
var esc = function ( t ) {
|
||||
return t
|
||||
.replace( /&/g, '&' )
|
||||
@@ -146,7 +146,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
||||
|
||||
return '<span class="ellipsis" title="'+esc(d)+'">'+shortened+'…</span>';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
function postAjax(data) {
|
||||
|
||||
@@ -200,6 +200,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
{% if exams %}
|
||||
$("table").DataTable({
|
||||
columnDefs: [ {
|
||||
targets: [6,7,8,9,10],
|
||||
@@ -207,6 +208,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
||||
} ],
|
||||
"paging": false,
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
$("#toggle-internal").click((evt) => {
|
||||
data = getGenericData();
|
||||
|
||||
@@ -1326,6 +1326,7 @@ class CidUserExamView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
||||
context["longs_exams"] = longs_exams
|
||||
context["anatomy_exams"] = anatomy_exams
|
||||
context["cid_user_groups"] = cid_user_groups
|
||||
context["exams"] = True
|
||||
return context
|
||||
|
||||
class CidUserView(CidManagerRequiredMixin, SingleTableMixin, FilterView):
|
||||
|
||||
Reference in New Issue
Block a user