diff --git a/app/Views/attendance.php b/app/Views/attendance.php index 21326805..8d32e346 100755 --- a/app/Views/attendance.php +++ b/app/Views/attendance.php @@ -237,7 +237,7 @@ $currentday = date('d');
- + 'atten'); echo form_open('attendance', $attributes); ?> @@ -257,6 +257,8 @@ $currentday = date('d');
+ + @@ -267,15 +269,6 @@ $currentday = date('d');
- - -
@@ -561,11 +554,7 @@ $currentday = date('d');
- + @@ -583,7 +572,7 @@ $currentday = date('d'); - + @@ -711,10 +701,7 @@ $(document).ready(function () { $(document).ready(function() { - // $("#attendance").CongelarFilaColumna({ - // lboHoverTr: true - // }); - $('html').bind('keypress', function(e) { + $('table').bind('keypress', function(e) { if (((e.which || e.keyCode) == 8) || ((e.which || e.keyCode) == 9) || ((e.which || e.keyCode) == @@ -1102,6 +1089,11 @@ function showMessage(msg) { msgBox.style.display = "none"; }, 3000); } +$(document).ready(function() { + document.getElementById("searchInput").addEventListener("input", function () { + this.value = this.value.replace(/[^a-zA-Z0-9 ]/g, ''); // Allows letters, numbers, and spaces + }); +}); $("#searchInput").on("keyup", function () { let value = $(this).val().toLowerCase(); // Convert input to lowercase for case-insensitive search