Fix bug (related to #1)

This commit is contained in:
Luc Didry 2015-10-04 04:38:03 +02:00
parent 6eb504047c
commit d0f87384c9
1 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ function updateProgressBar(data) {
uploadFile(i, sent_delay, del_at_first_view);
} else {
// We have finished
window.removeEventListener('onbeforeunload', confirmExit);
window.onbeforeunload = null;
document.getElementById('delete-day').removeAttribute('disabled');
document.getElementById('first-view').removeAttribute('disabled');
}
@ -301,7 +301,7 @@ function updateProgressBar(data) {
uploadFile(i, sent_delay, del_at_first_view);
} else {
// We have finished
document.onbeforeunload = null;
window.onbeforeunload = null;
document.getElementById('delete-day').removeAttribute('disabled');
document.getElementById('first-view').removeAttribute('disabled');
}