Index: lams_central/web/includes/javascript/outcome.js =================================================================== diff -u -r3e663c2c75e25bd2f8609488f052c0b34a67d5db -r48dc62244b557fd73807f2355b80b63be73154a3 --- lams_central/web/includes/javascript/outcome.js (.../outcome.js) (revision 3e663c2c75e25bd2f8609488f052c0b34a67d5db) +++ lams_central/web/includes/javascript/outcome.js (.../outcome.js) (revision 48dc62244b557fd73807f2355b80b63be73154a3) @@ -1,4 +1,12 @@ -function removeOutcome(outcomeId) { +$(document).ready(function(){ + $('#importInput').change(function(){ + if (this.files.length == 1) { + $('#importForm').submit(); + } + }); +}); + +function removeOutcome(outcomeId) { if (confirm(LABELS.REMOVE_OUTCOME_CONFIRM_LABEL)) { document.location.href = 'outcome.do?method=outcomeRemove&organisationID=' + organisationId + '&outcomeId=' + outcomeId; }