Files
zulip/zephyr/static/js/common.js
Keegan McAllister 3ef5334d9b Focus username field on loading login/register pages
(imported from commit 004a98ffaa59aebab34057cbe34f5e1038e44b62)
2012-08-29 15:16:28 -04:00

6 lines
93 B
JavaScript

function autofocus(selector) {
$(function () {
$(selector)[0].focus();
});
}