mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
Fehler beim Scannen der Anwesenheitsliste behoben
This commit is contained in:
@@ -130,23 +130,29 @@ echo '<!DOCTYPE HTML>
|
|||||||
document.getElementById("usercode").focus();
|
document.getElementById("usercode").focus();
|
||||||
else
|
else
|
||||||
document.getElementById("lvcode").focus();
|
document.getElementById("lvcode").focus();
|
||||||
})
|
|
||||||
|
|
||||||
$(document).ready(function()
|
// Tablesorter
|
||||||
{
|
$("#t1").tablesorter(
|
||||||
$("#t1").tablesorter(
|
|
||||||
{
|
{
|
||||||
sortList: [[4,0]],
|
sortList: [[4,0]],
|
||||||
widgets: ["zebra"]
|
widgets: ["zebra"]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Enter-Taste beim Scannen abfangen
|
||||||
|
$("#usercode").keydown(function(event) {
|
||||||
|
if (event.which == 13)
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function inputUsercode()
|
function inputUsercode()
|
||||||
{
|
{
|
||||||
var usercode = $("#usercode").val();
|
var usercode = $("#usercode").val();
|
||||||
if(usercode.length==13)
|
if(usercode.length==12)
|
||||||
{
|
{
|
||||||
var person_id = parseInt(usercode, 10);
|
var person_id = parseInt(usercode, 10);
|
||||||
|
person_id = person_id.toString();
|
||||||
|
person_id = person_id.substring(0, person_id.length - 1);
|
||||||
|
|
||||||
$("#img_"+person_id).attr("src","../../skin/images/false.png");
|
$("#img_"+person_id).attr("src","../../skin/images/false.png");
|
||||||
var uid = $("#uid_"+person_id).val();
|
var uid = $("#uid_"+person_id).val();
|
||||||
|
|||||||
Reference in New Issue
Block a user