diff --git a/dashboard-ui/scripts/edituserpage.js b/dashboard-ui/scripts/edituserpage.js index b674d0b941..12568b380c 100644 --- a/dashboard-ui/scripts/edituserpage.js +++ b/dashboard-ui/scripts/edituserpage.js @@ -38,6 +38,8 @@ EditUserPage.loadUser(response1[0] || response1, response2[0], response3[0], response4[0]); }); + + $("#editUserProfileForm input:first").focus(); }, loadUser: function (user, loggedInUser, allParentalRatings, allCultures) { @@ -150,7 +152,7 @@ if (userId) { Dashboard.alert("Settings saved."); } else { - Dashboard.navigate("userprofiles.html"); + Dashboard.navigate("userProfiles.html"); } }, diff --git a/dashboard-ui/scripts/medialibrarypage.js b/dashboard-ui/scripts/medialibrarypage.js index 4f4d119d83..15a0a529d4 100644 --- a/dashboard-ui/scripts/medialibrarypage.js +++ b/dashboard-ui/scripts/medialibrarypage.js @@ -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 () { diff --git a/dashboard-ui/scripts/scheduledtaskpage.js b/dashboard-ui/scripts/scheduledtaskpage.js index e7ea33f809..6e16211c99 100644 --- a/dashboard-ui/scripts/scheduledtaskpage.js +++ b/dashboard-ui/scripts/scheduledtaskpage.js @@ -133,7 +133,9 @@ $('#selectTriggerType', page).val('DailyTrigger').trigger('change').selectmenu('refresh'); - $('#popupAddTrigger', page).popup("open").on("popupafterclose", function () { + $('#popupAddTrigger', page).on("popupafteropen",function() { + $('#addTriggerForm input:first', this).focus(); + }).popup("open").on("popupafterclose", function () { $('#addTriggerForm', page).off("submit"); $(this).off("popupafterclose"); diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 409e8a489f..5ad07ed367 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -434,7 +434,7 @@ var Dashboard = { var hasPrimaryImage = item.ImageTags && item.ImageTags.Primary; - var href = item.IsFolder ? (item.Id ? "itemlist.html?parentId=" + item.Id : "#") : "itemdetails.html?id=" + item.Id; + var href = item.IsFolder ? (item.Id ? "itemList.html?parentId=" + item.Id : "#") : "itemDetails.html?id=" + item.Id; var showText = options.showTitle || !hasPrimaryImage || (item.Type !== 'Movie' && item.Type !== 'Series' && item.Type !== 'Season' && item.Type !== 'Trailer'); @@ -539,7 +539,7 @@ var Dashboard = { html += ''; html += '

'; - html += '

'; + html += '

'; html += '

'; html += ''; @@ -589,7 +589,9 @@ var Dashboard = { $($.mobile.activePage).append(html); - var popup = $('#popupDirectoryPicker').popup().trigger('create').popup("open").on("popupafterclose", function () { + var popup = $('#popupDirectoryPicker').popup().trigger('create').on("popupafteropen",function() { + $('#popupDirectoryPicker input:first', this).focus(); + }).popup("open").on("popupafterclose", function () { $('form', this).off("submit"); $(this).off("click").off("popupafterclose").remove(); @@ -857,11 +859,11 @@ var Dashboard = { selected: page.hasClass("pluginConfigurationPage") }, { name: "User Profiles", - href: "userprofiles.html", + href: "userProfiles.html", selected: page.hasClass("userProfilesConfigurationPage") }, { name: "Display Settings", - href: "uisettings.html", + href: "uiSettings.html", selected: pageElem.id == "displaySettingsPage" }, { name: "Advanced", @@ -869,7 +871,7 @@ var Dashboard = { selected: pageElem.id == "advancedConfigurationPage" }, { name: "Scheduled Tasks", - href: "scheduledtasks.html", + href: "scheduledTasks.html", selected: pageElem.id == "scheduledTasksPage" || pageElem.id == "scheduledTaskPage" }, { name: "Help", @@ -1156,7 +1158,7 @@ $(function () { var footerHtml = '