Give all the other stuff a chance to run before we try to set focus - fixes focus is set then lost on the first time you set filter by start or due date

This commit is contained in:
nathangray 2017-01-30 09:52:36 -07:00
parent 8e378a7560
commit 459b38f5c1

View File

@ -214,7 +214,9 @@ app.classes.infolog = AppJS.extend(
if (filter && dates) if (filter && dates)
{ {
dates.set_disabled(false); dates.set_disabled(false);
jQuery(this.et2.getWidgetById('startdate').getDOMNode()).find('input').focus(); window.setTimeout(function() {
jQuery(dates.getWidgetById('startdate').getDOMNode()).find('input').focus();
},0);
} }
break; break;
default: default: