small correction on category page
authorymh <ymh.work@gmail.com>
Thu, 26 Feb 2015 12:39:23 +0100
changeset 459 699686ceb503
parent 458 604b887e70c3
child 460 135f5fd7d263
small correction on category page
src/hdalab/static/hdalab/js/cattree.js
src/hdalab/templates/categories.html
--- 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
--- 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 @@
         </ul>
         <h3>Recherche de catégories de Wikipédia&nbsp;: </h3>
         <p>
-            <form id="catform"><input id="catsearch" /></form>
+            <form id="catform"><input id="catsearch" placeholder="{% trans 'Entrez une catégorie'%}"/></form>
         </p>
         <div class="results hidden">
             <h2>Résultats pour &laquo;&nbsp;<span class="label-name"></span>&nbsp;&raquo;&nbsp;:</h2>
             <p class="category-results"><span class="category-count"></span> sous-catégorie(s)</p>
-            <p class="tag-results"><span class="tag-count"></span> tag(s)</p>
             <p class="content-results"><span class="content-count"></span> contenu(s)</p>
         </div>
     </div>