removed js ment to stop formdata send to server on refresh

This commit is contained in:
Kar l5
2024-05-03 11:58:52 +05:30
parent ee7930cc87
commit b4eba4f4c8

View File

@@ -184,18 +184,6 @@
?> ?>
<script>
// Check if the page is refreshed
if (performance.navigation.type === 1) {
// Disable form submission on refresh
window.onload = function () {
document.getElementById("form_edit_user").addEventListener("submit", function (event) {
event.preventDefault();
alert("Form submission is disabled on refresh.");
});
};
}
</script>
<style> <style>
/* For small screens */ /* For small screens */