mirror of https://github.com/gogs/gogs.git
js: set cursor to the end of autofocus input string
parent
bd1f2ccaf8
commit
3c0de17133
|
@ -1154,6 +1154,11 @@ $(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 () {
|
||||||
$(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');
|
$(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');
|
||||||
|
|
Loading…
Reference in New Issue