_show_all = false;//toggle type switch
showAll();
}
+
+ $(function() {
+ $( "#rs_keys, #rs_keys2" ).autocomplete({
+ source: AUTOWORDS
+ });
+ });
+
$('#ed').datetimepicker({
dateFormat: 'yy-mm-dd',
timeFormat: 'HH:mm:ss',
lbl = lbl + " ".repeat(16-lbl.length);
$("#lcat_x").html(lbl);
$("#xc").val(ci);
- $("#cat_desc").show();
+ $("#cat_desc").show();
}).mouseenter(function(e){
var pr = $(event.target).parent(); pr = pr.attr('id');
if(pr){
}
}
]
- });
+ });
+ //Following is needed as the dropdown registers somewhere in lib. to show on when enter key is hit.
+ $.fn.enterKey = function (fnc) {
+ return this.each(function () {
+ $(this).keypress(function (ev) {
+ var keycode = (ev.keyCode ? ev.keyCode : ev.which);
+ if (keycode == 13) {
+ fnc.call(this, ev);
+ ev.preventDefault();
+ }
+ })
+ })
+ }
+ $("#rs_keys").enterKey(function (ev) {});
+
+ $('#rs_keys').bind('keypress', function(event) {
+ if(event.which === 13) {
+ $(this).next().focus();
+ }
+ });
+
setPageSessionTimer(expires);
- $(function() {
- $( "#rs_keys, #rs_keys2" ).autocomplete({
- source: AUTOWORDS
- });
- });
var CHK_PREV;
$("#frm_log td").mouseover(function(e){