# HG changeset patch
# User ymh
# Date 1424950763 -3600
# Node ID 699686ceb50339145dea7e63e6239d7158adeba6
# Parent 604b887e70c3cee7301d7106e7c85b69de96fd03
small correction on category page
diff -r 604b887e70c3 -r 699686ceb503 src/hdalab/static/hdalab/js/cattree.js
--- a/src/hdalab/static/hdalab/js/cattree.js Thu Feb 26 10:33:10 2015 +0100
+++ b/src/hdalab/static/hdalab/js/cattree.js Thu Feb 26 12:39:23 2015 +0100
@@ -9,8 +9,7 @@
renderData($("#tree"), _data, 1);
$(".results").show();
$(".content-count").html($(".cattree a.content").length);
- $(".category-count").html(Math.max(0, $("p.category").length - 1));
- $(".tag-count").html($("p.tag").length);
+ $(".category-count").html(Math.max(0, $("li.themeli").length - 1));
} else {
$("#tree").html("");
$(".results").hide();
@@ -56,5 +55,6 @@
gettree("cinéma");
$(".disciplist li").click(function() {
gettree($(this).text().trim());
+ $("#catsearch").val("");
});
});
\ No newline at end of file
diff -r 604b887e70c3 -r 699686ceb503 src/hdalab/templates/categories.html
--- a/src/hdalab/templates/categories.html Thu Feb 26 10:33:10 2015 +0100
+++ b/src/hdalab/templates/categories.html Thu Feb 26 12:39:23 2015 +0100
@@ -53,12 +53,11 @@
Recherche de catégories de Wikipédia :
-
+
Résultats pour « » :
sous-catégorie(s)
-
tag(s)
contenu(s)