# HG changeset patch # User Dan # Date 1247865329 14400 # Node ID 0dac837643a446adcaee6ff5218c723c5c8d4141 # Parent 2e7ccbdfdc0a6856c1e1050566009e6c5b4454f1# Parent 4b868c7c241e996977469b55abd795e33d0ce731 Branch merge from accidental split diff -r 2e7ccbdfdc0a -r 0dac837643a4 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);