Commit 829804c8 authored by olau@iola.dk's avatar olau@iola.dk

Use <label>s next to the checkboxes


git-svn-id: https://flot.googlecode.com/svn/trunk@155 1e0a6537-2640-0410-bfb7-f154510ff394
parent 044ee4e5
...@@ -67,7 +67,9 @@ $(function () { ...@@ -67,7 +67,9 @@ $(function () {
var choiceContainer = $("#choices"); var choiceContainer = $("#choices");
$.each(datasets, function(key, val) { $.each(datasets, function(key, val) {
choiceContainer.append('<br/><input type="checkbox" name="' + key + choiceContainer.append('<br/><input type="checkbox" name="' + key +
'" checked="checked" >' + val.label + '</input>'); '" checked="checked" id="id' + key + '">' +
'<label for="id' + key + '">'
+ val.label + '</label>');
}); });
choiceContainer.find("input").click(plotAccordingToChoices); choiceContainer.find("input").click(plotAccordingToChoices);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment