mirror of
https://github.com/gogs/gogs.git
synced 2025-12-24 01:00:00 +01:00
js: set cursor to the end of autofocus input string
This commit is contained in:
@@ -1153,6 +1153,11 @@ function initWebhookSettings() {
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
csrf = $('meta[name=_csrf]').attr("content");
|
csrf = $('meta[name=_csrf]').attr("content");
|
||||||
suburl = $('meta[name=_suburl]').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
|
// Show exact time
|
||||||
$('.time-since').each(function () {
|
$('.time-since').each(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user