removed js ment to stop formdata send to server on refresh
This commit is contained in:
@@ -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>
|
||||
/* For small screens */
|
||||
|
||||
Reference in New Issue
Block a user