diff --git a/cps/static/js/filter_list.js b/cps/static/js/filter_list.js index 8291f0ac..611bf3b4 100644 --- a/cps/static/js/filter_list.js +++ b/cps/static/js/filter_list.js @@ -19,6 +19,14 @@ var direction = 0; // Descending order var sort = 0; // Show sorted entries $("#sort_name").click(function() { + /*$.ajax({ + method:"post", + contentType: "application/json; charset=utf-8", + dataType: "json", + url: window.location.pathname + "/../../ajax/view", + data: "{" + st + "}", + });*/ + var count = 0; var index = 0; var store; @@ -40,9 +48,7 @@ $("#sort_name").click(function() { count++; } }); - /*listItems.sort(function(a,b){ - return $(a).children()[1].innerText.localeCompare($(b).children()[1].innerText) - });*/ + // Find count of middle element if (count > 20) { var middle = parseInt(count / 2, 10) + (count % 2); diff --git a/cps/templates/author.html b/cps/templates/author.html index 18742003..41a9aebb 100644 --- a/cps/templates/author.html +++ b/cps/templates/author.html @@ -23,14 +23,14 @@
{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
+{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
{% endif %} {% if entry.languages.__len__() > 0 %} @@ -143,7 +143,7 @@ {% for tag in entry.tags %} - {{tag.name}} + {{tag.name}} {%endfor%} @@ -154,7 +154,7 @@{{_('Publisher')}}: - {{entry.publishers[0].name}} + {{entry.publishers[0].name}}