mtgnome / jquery-barcodelistener

Automatically exported from code.google.com/p/jquery-barcodelistener
0 stars 0 forks source link

Some suggestions #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using Chrome

Added an autocomplete="off" to the hidden input otherwise it will pop up into 
view.
Changed

$("body").append("<form id=\"29LLRUZk\" style=\"opacity:0;height:0px;\"><input 
type=\"text\" name=\"L3ZitQdL\" id=\"L3ZitQdL\" /></form>");

to

$("body").append("<form id=\"29LLRUZk\" style=\"opacity:0;height:0px;\"><input 
autocomplete=\"off\" type=\"text\" name=\"L3ZitQdL\" id=\"L3ZitQdL\" 
/></form>");

This line fires off an error

if (e.which == settings[wlBUJTIw][1])

So I changed it to

if (typeof settings[wlBUJTIw] != 'undefined'  && e.which == 
settings[wlBUJTIw][1])

Original issue reported on code.google.com by fenixlu...@gmail.com on 6 Feb 2012 at 3:16