Skip to content

Commit

Permalink
trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhamverma2796 committed Feb 2, 2022
1 parent e1f8bfa commit f882b1d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build/media_source/com_joomlaupdate/js/default.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,18 @@ Joomla = window.Joomla || {};
const allowedSize = uploadForm.max_upload_size.value;
if (fileSize <= allowedSize && updateCheck.disabled) {
updateCheck.disabled = !updateCheck.disabled;
}
else if (fileSize <= allowedSize && !updateCheck.disabled && !updateCheck.checked) {
} else if (fileSize <= allowedSize && !updateCheck.disabled && !updateCheck.checked) {
updateCheck.disabled = false;
}
else if (fileSize <= allowedSize && updateCheck.checked) {
} else if (fileSize <= allowedSize && updateCheck.checked) {
updateCheck.checked = false;
uploadButton.disabled = true;
}
else if (fileSize > allowedSize && !updateCheck.disabled) {
} else if (fileSize > allowedSize && !updateCheck.disabled) {
updateCheck.disabled = !updateCheck.disabled;
updateCheck.checked = false;
uploadButton.disabled = true;
}
});
}
});
}
// Trigger (re-) install (including checkbox confirm if we update)
if (installButton && installButton.getAttribute('href') === '#' && task) {
installButton.addEventListener('click', (e) => {
Expand Down

0 comments on commit f882b1d

Please sign in to comment.