details: http://www.bx.psu.edu/hg/galaxy/rev/983d70363eeb changeset: 3442:983d70363eeb user: rc date: Thu Feb 25 11:28:14 2010 -0500 description: lims: deactivate the enter key in requests page so that the scanner can be used to enter barcodes for each sample
diffstat:
templates/admin/requests/show_request.mako | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 25015efefdd9 -r 983d70363eeb templates/admin/requests/show_request.mako --- a/templates/admin/requests/show_request.mako Wed Feb 24 18:55:30 2010 -0500 +++ b/templates/admin/requests/show_request.mako Thu Feb 25 11:28:14 2010 -0500 @@ -41,14 +41,23 @@ }); }); </script> + <style type="text/css"> .msg_head { padding: 0px 0px; cursor: pointer; } +</style>
-} -</style> +<script type="text/javascript"> + function stopRKey(evt) { + var evt = (evt) ? evt : ((event) ? event : null); + var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); + if ((evt.keyCode == 13) && (node.type=="text")) {return false;} + } + document.onkeypress = stopRKey +</script> +
%if request.rejected(): ${render_msg( "Reason for rejection: "+request.last_comment(), "warning" )}
galaxy-dev@lists.galaxyproject.org