1
0
Fork 0
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:
Techywarrior 2013-03-28 20:50:46 -07:00
parent 1e5d5344a4
commit 60002c5535
5 changed files with 23 additions and 15 deletions

View file

@ -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 () {