Refactor series checkboxes for graph

This commit is contained in:
perryharlock
2013-09-26 16:08:09 +01:00
parent faf5d72974
commit e77c163f20
4 changed files with 34 additions and 13 deletions

View File

@@ -167,7 +167,7 @@ $(document).ready(function(){
$.each(datasets, function(key, val) {
var lowerCaseValue = (val.label.substring(0, val.label.length - 1)).toLowerCase();
choiceContainer.append("<li class='"+ lowerCaseValue +"'><label class='checkbox-inline' for='id" + key + "'><input type='checkbox' name='" + key + "' checked='checked' id='id" + key + "'/>" + val.label + "</label></li>");
choiceContainer.append("<li class='text-center "+ lowerCaseValue +"'><label for='id" + key + "'><input type='checkbox' name='" + key + "' checked='checked' id='id" + key + "'/><span class='stat-type'>" + val.label + "</span></label></li>");
});
choiceContainer.find("input").click(plotAccordingToChoices);