mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
focus primary element on forms
This commit is contained in:
parent
1e5d5344a4
commit
60002c5535
5 changed files with 23 additions and 15 deletions
|
@ -168,13 +168,12 @@
|
|||
$('label', popup).html(label);
|
||||
$('#txtValue', popup).val(initialValue);
|
||||
|
||||
popup.popup("open").on("popupafterclose", function () {
|
||||
|
||||
popup.on("popupafteropen",function() {
|
||||
$('#textEntryForm input:first', this).focus();
|
||||
}).on("popupafterclose", function () {
|
||||
$(this).off("popupafterclose").off("click");
|
||||
|
||||
$('#textEntryForm', this).off("submit");
|
||||
|
||||
});
|
||||
}).popup("open");
|
||||
|
||||
$('#textEntryForm', popup).on('submit', function () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue