Fixing field table

This commit is contained in:
Alex Yatskov 2016-05-28 18:53:06 -07:00
parent 7a37c10aed
commit a936bc0088

View File

@ -100,9 +100,9 @@ function populateAnkiFields(element, opts) {
const body = $('<tbody>'); const body = $('<tbody>');
names.forEach((name) => { names.forEach((name) => {
const row = $('<tr>'); const row = $('<tr>');
row.append($('<td>').text(name)); row.append($('<td>', {class: 'col-sm-2'}).text(name));
const value = opts[optKey][name] || ''; const value = opts[optKey][name] || '';
row.append($('<input>', {class: 'anki-field-value form-control', value}).data('field', name).change(onOptionsAnkiChanged)); row.append($('<td>', {class: 'col-sm-10'}).append($('<input>', {class: 'anki-field-value form-control', value}).data('field', name).change(onOptionsAnkiChanged)));
body.append(row); body.append(row);
}); });