Merge remote-tracking branch 'refs/remotes/friendica/develop' into develop
This commit is contained in:
commit
cb37dfd0a1
1 changed files with 9 additions and 4 deletions
|
@ -397,6 +397,11 @@
|
|||
var modal = $('#jot-modal').modal();
|
||||
jotcache = $("#jot-sections");
|
||||
|
||||
// Auto focus on the first enabled field in the modal
|
||||
modal.on('shown.bs.modal', function (e) {
|
||||
$('#jot-modal-content').find('select:not([disabled]), input:not([type=hidden]):not([disabled]), textarea:not([disabled])').first().focus();
|
||||
})
|
||||
|
||||
modal
|
||||
.find('#jot-modal-content')
|
||||
.append(jotcache)
|
||||
|
|
Loading…
Reference in a new issue