Browse Source

js: set cursor to the end of autofocus input string

pull/3974/merge
Unknwon 8 years ago
parent
commit
3c0de17133
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 5
      public/js/gogs.js

5
public/js/gogs.js

@ -1154,6 +1154,11 @@ $(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 () {
$(this).addClass('poping up').attr('data-content', $(this).attr('title')).attr('data-variation', 'inverted tiny').attr('title', '');

Loading…
Cancel
Save