Branch merge from accidental split
authorDan
Fri, 17 Jul 2009 17:15:29 -0400
changeset 26 0dac837643a4
parent 25 2e7ccbdfdc0a (current diff)
parent 23 4b868c7c241e (diff)
child 27 647f0aa485dd
Branch merge from accidental split
plugins/yubikey/yubikey.js
--- a/plugins/yubikey/yubikey.js	Fri Jul 17 17:15:10 2009 -0400
+++ b/plugins/yubikey/yubikey.js	Fri Jul 17 17:15:29 2009 -0400
@@ -55,7 +55,12 @@
           window.clearInterval(yk_interval);
           miniPromptDestroy(this);
         }
-        else if ( this.value.length >= 44 && !this.submitted )
+        else if ( this.value.length == 44 && !this.submitted )
+        {
+          this.submitted = true;
+          yk_handle_submit(this);
+        }
+        else if ( e.keyCode == 13 && this.value.length != 44 )
         {
           this.submitted = true;
           yk_handle_submit(this);