View | Details | Raw Unified | Return to bug 15911
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-3 / +4 lines)
Lines 128-135 function checkEnter(e){ //e is event object passed from function invocation Link Here
128
    } else {
128
    } else {
129
        characterCode = e.keyCode; //character code is contained in IE's keyCode property
129
        characterCode = e.keyCode; //character code is contained in IE's keyCode property
130
    }
130
    }
131
131
    if( characterCode == 13 //if generated character code is equal to ascii 13 (if enter key)
132
    if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
132
        && e.target.nodeName == "INPUT"
133
        && e.target.type != "submit" // Allow enter to submit using the submit button
134
    ){
133
        return false;
135
        return false;
134
    } else {
136
    } else {
135
        return true;
137
        return true;
136
- 

Return to bug 15911