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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-4 / +3 lines)
Lines 25-32 function _(s) { return s; } // dummy function for gettext Link Here
25
        return false;
25
        return false;
26
    });
26
    });
27
27
28
    $('.noEnterSubmit').keypress(function(e){
28
    $('.noEnterSubmit').live("keypress", function(e){
29
        if ( e.which == 13 ) return false;
29
        return checkEnter(e);
30
    });
30
    });
31
});
31
});
32
32
Lines 37-43 function checkEnter(e){ //e is event object passed from function invocation Link Here
37
		e = e;
37
		e = e;
38
		characterCode = e.which; //character code is contained in NN4's which property
38
		characterCode = e.which; //character code is contained in NN4's which property
39
	} else {
39
	} else {
40
		e = event;
40
		e = window.event;
41
		characterCode = e.keyCode; //character code is contained in IE's keyCode property
41
		characterCode = e.keyCode; //character code is contained in IE's keyCode property
42
	}
42
	}
43
43
44
- 

Return to bug 11563