Commit 9d946b0a authored by Nigel McNie's avatar Nigel McNie
Browse files

Reset input after entering a resume item. Fixes #2073.

parent 65a8fd72
......@@ -258,7 +258,13 @@ function compositeSaveCallback(form, data) {
key = form.id.substr(3);
tableRenderers[key].doupdate();
toggleCompositeForm(key);
$('add' + key).reset();
// Can't reset() the form here, because its values are what were just submitted,
// thanks to pieforms
forEach(form.elements, function(element) {
if (hasElementClass(element, 'text') || hasElementClass(element, 'textarea')) {
element.value = '';
}
});
}
function deleteComposite(type, id, artefact) {
......
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