<%}%>'},initialize:function(t){this.PointClass=i.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(t),this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),e.each(i,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(i)}),e.each(t.datasets,function(i){var s={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(s),e.each(i.data,function(e,n){var o;this.scale.animation||(o=this.scale.getPointPosition(n,this.scale.calculateCenterOffset(e))),s.points.push(new this.PointClass({value:e,label:t.labels[n],datasetLabel:i.label,x:this.options.animation?this.scale.xCenter:o.x,y:this.options.animation?this.scale.yCenter:o.y,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(t){e.each(this.datasets,function(i){e.each(i.points,t,this)},this)},getPointsAtEvent:function(t){var i=e.getRelativePosition(t),s=e.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},i),n=2*Math.PI/this.scale.valuesCount,o=Math.round((s.angle-1.5*Math.PI)/n),a=[];return(o>=this.scale.valuesCount||0>o)&&(o=0),s.distance<=this.scale.drawingArea&&e.each(this.datasets,function(t){a.push(t.points[o])}),a},buildScale:function(t){this.scale=new i.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:t.labels,valuesCount:t.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(t.datasets),this.scale.buildYLabels()},updateScaleRange:function(t){var i=function(){var i=[];return e.each(t,function(t){t.data?i=i.concat(t.data):e.each(t.points,function(t){i.push(t.value)})}),i}(),s=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:e.calculateScaleRange(i,e.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);e.extend(this.scale,s)},addData:function(t,i){this.scale.valuesCount++,e.each(t,function(t,e){var s=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(t));this.datasets[e].points.push(new this.PointClass({value:t,label:i,x:s.x,y:s.y,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.labels.push(i),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),e.each(this.datasets,function(t){t.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(t){t.save()}),this.reflow(),this.render()},reflow:function(){e.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:e.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(t){var i=t||1,s=this.chart.ctx;this.clear(),this.scale.draw(),e.each(this.datasets,function(t){e.each(t.points,function(t,e){t.hasValue()&&t.transition(this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t.value)),i)},this),s.lineWidth=this.options.datasetStrokeWidth,s.strokeStyle=t.strokeColor,s.beginPath(),e.each(t.points,function(t,i){0===i?s.moveTo(t.x,t.y):s.lineTo(t.x,t.y)},this),s.closePath(),s.stroke(),s.fillStyle=t.fillColor,s.fill(),e.each(t.points,function(t){t.hasValue()&&t.draw()})},this)}})}.call(this);
\ No newline at end of file
diff --git a/js/app/studs.js b/js/app/studs.js
index 0266c63..52fd102 100644
--- a/js/app/studs.js
+++ b/js/app/studs.js
@@ -35,4 +35,14 @@ $(document).ready(function () {
}
});
-});
\ No newline at end of file
+ $('.choice input:radio').on('change', function(){
+ $(this).parent().parent().find('.startunchecked').removeClass('startunchecked');
+ });
+ $('.startunchecked').on('click', function(){
+ $(this).removeClass('startunchecked');
+ });
+ $('.no input').on('focus', function(){
+ $(this).next().removeClass('startunchecked');
+ });
+
+});
diff --git a/locale/de.json b/locale/de.json
index d70c502..f33b3ac 100644
--- a/locale/de.json
+++ b/locale/de.json
@@ -139,6 +139,10 @@
"The bests choices at this time are:": "Die beste Optionen sind derzeit:",
"Scroll to the left": "Links scrollen",
"Scroll to the right": "Rechts scrollen"
+ "polled user": "DE_votant",
+ "polled users": "DE_votants",
+ "Display the chart of the results": "DE_Afficher le graphique des résultats",
+ "Chart": "DE_Graphique"
},
"Comments": {
"Comments of polled people": "Kommentare von Teilnehmer",
diff --git a/locale/en.json b/locale/en.json
index bc4d4ed..8f0dbe7 100644
--- a/locale/en.json
+++ b/locale/en.json
@@ -139,6 +139,8 @@
"The bests choices at this time are:": "The bests choices at this time are:",
"Scroll to the left": "Scroll to the left",
"Scroll to the right": "Scroll to the right"
+ "Display the chart of the results": "Display the chart of the results",
+ "Chart": "Chart"
},
"Comments": {
"Comments of polled people": "Comments of polled people",
diff --git a/locale/es.json b/locale/es.json
index 357ff31..fbb6c6b 100644
--- a/locale/es.json
+++ b/locale/es.json
@@ -139,6 +139,10 @@
"The bests choices at this time are:": "ES_Les meilleurs choix pour l'instant sont :",
"Scroll to the left": "ES_Faire défiler à gauche",
"Scroll to the right": "ES_Faire défiler à droite"
+ "polled user": "ES_votant",
+ "polled users": "ES_votants",
+ "Display the chart of the results": "ES_Afficher le graphique des résultats",
+ "Chart": "ES_Graphique"
},
"Comments": {
"Comments of polled people": "ES_Commentaires de sondés",
diff --git a/locale/fr.json b/locale/fr.json
index cc0f5e6..7e420b5 100644
--- a/locale/fr.json
+++ b/locale/fr.json
@@ -135,10 +135,14 @@
"Addition": "Somme",
"Best choice": "Meilleur choix",
"Best choices": "Meilleurs choix",
- "The best choice at this time is:": "Le meilleur choix pour l'instant est :",
- "The bests choices at this time are:": "Les meilleurs choix pour l'instant sont :",
+ "The best choice at this time is:": "Pour l'instant, le choix ayant reçu le plus grand nombre de votes est :",
+ "The bests choices at this time are:": "Pour l'instant, les choix ayant reçu le plus grand nombre de votes sont :",
"Scroll to the left": "Faire défiler à gauche",
- "Scroll to the right": "Faire défiler à droite"
+ "Scroll to the right": "Faire défiler à droite",
+ "polled user": "votant",
+ "polled users": "votants",
+ "Display the chart of the results": "Afficher le graphique des résultats",
+ "Chart": "Graphique"
},
"Comments": {
"Comments of polled people": "Commentaires de sondés",
diff --git a/locale/it.json b/locale/it.json
index c41a72e..977f254 100644
--- a/locale/it.json
+++ b/locale/it.json
@@ -138,7 +138,11 @@
"The best choice at this time is:": "La migliore scelta per ora è :",
"The bests choices at this time are:": "Le migliori scelte per ora sono :",
"Scroll to the left": "Spostare a sinistra",
- "Scroll to the right": "Spostare a destra"
+ "Scroll to the right": "Spostare a destra",
+ "polled user": "IT_votant",
+ "polled users": "IT_votants",
+ "Display the chart of the results": "IT_Afficher le graphique des résultats",
+ "Chart": "IT_Graphique"
},
"Comments": {
"Comments of polled people": "Commenti dei partecipanti",
@@ -331,4 +335,4 @@
"You can't create a poll with hidden results with the following edition option:": "IT_Vous ne pouvez pas créer de sondage avec résulats cachés avec les options d'éditions suivantes : ",
"Failed to delete column": "Impossibile eliminare colonna"
}
-}
\ No newline at end of file
+}
diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl
index a66e141..725c4c9 100644
--- a/tpl/part/vote_table_classic.tpl
+++ b/tpl/part/vote_table_classic.tpl
@@ -16,14 +16,14 @@