Changeset 44

Show
Ignore:
Timestamp:
07/25/06 13:36:15 (2 years ago)
Author:
jm3
Message:

multiple / single keys off-by-one error fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 10kz/scripts/crypto-ui-injector.user.js

    r43 r44  
    301301 
    302302function pulldown_from_keys( x ) { 
    303  
    304303        /* FIXME: handle no private keys case */ 
    305304        /* FIXME: handle no local server / server error case */ 
     
    321320                d.firstChild.childNodes[1].appendChild( document.createTextNode("Have you installed GPG?")); 
    322321                injection_point.childNodes[1].appendChild( d ); 
    323  
    324                 return log( "no keys found - inject install link here." ); 
    325322        } 
    326323 
    327324        d.firstChild.appendChild( document.createTextNode(" Using GPG key: ")); 
    328         if( options.length > 1 ) { 
     325        if( options.length > 0 ) { 
    329326                /* for users with multiple keys, give them a select menu. */ 
    330327                var key_info_ctrl;