Trivial fix: set label.for to the input's id

This commit is contained in:
Abhijit Menon-Sen
2013-07-17 13:30:37 +05:30
parent 4aeb9af8a7
commit 43840d246d
@@ -60,7 +60,7 @@
if ( fieldAttributes.name ) { if ( fieldAttributes.name ) {
html += '<label'; html += '<label';
if ( fieldAttributes.id ) { if ( fieldAttributes.id ) {
html += ' for="' + fieldAttributes.name + '"'; html += ' for="gollum-dialog-dialog-generated-field-' + fieldAttributes.id + '"';
} }
html += '>' + fieldAttributes.name + '</label>'; html += '>' + fieldAttributes.name + '</label>';
} }