From a7c4ee1105678cc2c2fa8f0ddc4f45e5087f8bf7 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 10 Oct 2007 21:21:12 +0000 Subject: [PATCH] jetzt schein t die auswahl via enter zu funktionieren, ausserdem ein paar kleine cleanups die mir aufgefallen sind. --- js/personAdmin/personSearch1.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/js/personAdmin/personSearch1.js b/js/personAdmin/personSearch1.js index 01802fc..807779d 100644 --- a/js/personAdmin/personSearch1.js +++ b/js/personAdmin/personSearch1.js @@ -117,7 +117,7 @@ function c_personSearch1 (fname, sname, fnameAlt, snameAlt, names, person) } if (this.person != null) - if (this.fNameBest[1] == 0) + if (this.sNameBest[1] == 0 && this.fNameBest[1] == 0) this.person.update ( this.persons[this.sNameBest[2]][this.fNameBest[2]]); else @@ -157,7 +157,7 @@ function c_personSearch1 (fname, sname, fnameAlt, snameAlt, names, person) len < dists.lenth) len++; else - len = dists.length - 1; + len = dists.length; for (var i=0; i