Skip to content

Commit 969e806

Browse files
authored
Merge pull request #562 from artoonie/bugfix/fix-data-entry
fix data entry
2 parents 8a40908 + 9500adb commit 969e806

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

static/datatable/src/model/candidate.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,13 @@ export default class Candidate {
167167
placeholder);
168168
candidateName.classList.add("candidate-name-input");
169169
// TODO -- disabled for now -- NOMODALEDIT
170-
// const moreInfoButton = Candidate.getMoreInfoButton(editor, candidate,
171-
// cell, candidateName, success, cancel,
172-
// onRendered, editorParams);
170+
// TODO -- getMoreInfoButton does more than create the button.
171+
// Without constructing this, data entry does not work.
172+
// 1. Split out whatever initialization is done here into something unrelated to "more info"
173+
// 2. Add a regression test that catches this issue
174+
const moreInfoButton = Candidate.getMoreInfoButton(editor, candidate,
175+
cell, candidateName, success, cancel,
176+
onRendered, editorParams);
173177
// editor.appendChild(document.createElement("br"));
174178
// editor.appendChild(moreInfoButton);
175179

templates/settings/settings-upload-by-datatable.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@
3939
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
4040
{% compress js file %}
4141
{% endcompress %}
42+
43+
{% include "settings/settings-candidate-modal.html" %}

0 commit comments

Comments
 (0)