js: set cursor to the end of autofocus input string

master
Unknwon 2017-04-06 17:00:12 -04:00
parent bd1f2ccaf8
commit 3c0de17133
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 5 additions and 0 deletions

View File

@ -1153,6 +1153,11 @@ function initWebhookSettings() {
$(document).ready(function () {
csrf = $('meta[name=_csrf]').attr("content");
suburl = $('meta[name=_suburl]').attr("content");
// Set cursor to the end of autofocus input string
$('input[autofocus]').each(function () {
$(this).val($(this).val());
})
// Show exact time
$('.time-since').each(function () {