私は同僚が書いた JavaScript を見ていますが、両方の句で同じように見えると思います:
function doSubmitOversikt(action, command, status) {
var checked = document.getElementById("klarbox").checked;
if(status && !checked) {
if (confirm("Ärendet är satt som Klar (formell handläggning första delen klar). Vill du verkligen ångra detta? Att ångra kan innebära att ärendet behöver arras om i CICS.")) {
document.actionForm.action.value = action;
document.actionForm.actionCommand.value = command;
document.actionForm.submit();
disableAll();
}
} else {
document.actionForm.action.value = action;
document.actionForm.actionCommand.value = command;
document.actionForm.submit();
disableAll();
}
}
上記のコードと無条件に行うことの違いは何ですか
document.actionForm.action.value = action;
document.actionForm.actionCommand.value = command;
document.actionForm.submit();
disableAll();
?