timeline start year : debug 0018159
authorcavaliet
Mon, 18 Nov 2013 14:16:09 +0100
changeset 189 577421d64334
parent 188 1b4e4e935b24
child 190 6d3bf30a171b
timeline start year : debug 0018159
src/jocondelab/static/jocondelab/js/front-timeline.js
src/jocondelab/templates/jocondelab/front_timeline.html
--- a/src/jocondelab/static/jocondelab/js/front-timeline.js	Fri Nov 15 14:40:38 2013 +0100
+++ b/src/jocondelab/static/jocondelab/js/front-timeline.js	Mon Nov 18 14:16:09 2013 +0100
@@ -1,6 +1,6 @@
 $(function() {
     
-    var startYear = -21000,
+    var startYear = -20000,
         endYear = 2012,
         gamma = 2,
         zoomLevel = 4,
@@ -232,7 +232,7 @@
             ctx.moveTo(x, cHeight*3/14);
             ctx.lineTo(x, cHeight - cHeight/14);
             ctx.stroke();
-            if (isPrimary) {
+            if (isPrimary && (y!=startYear)) {
                 ctx.fillText(y || 1, x, cHeight - 4);
                 ctx.fillText(y || 1, x, cHeight*4/21);
             }
--- a/src/jocondelab/templates/jocondelab/front_timeline.html	Fri Nov 15 14:40:38 2013 +0100
+++ b/src/jocondelab/templates/jocondelab/front_timeline.html	Mon Nov 18 14:16:09 2013 +0100
@@ -17,7 +17,7 @@
 
 {% block css_declaration %}
     {{block.super}}
-    <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-timeline.css"></script>
+    <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-timeline.css" />
 {% endblock %}
 
 {% block title %}JocondeLab &raquo; {% trans 'Chronologie' %}{% endblock %}