From beb21adecfca0ff24d07d68239cd4e53a8413fe1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 5 Apr 2015 11:01:57 -0400 Subject: [PATCH] probe live streams after opening --- dashboard-ui/playlistedit.html | 1 + dashboard-ui/scripts/playlistedit.js | 2 ++ dashboard-ui/scripts/syncsettings.js | 2 ++ dashboard-ui/scripts/useredit.js | 8 ++++++- dashboard-ui/syncsettings.html | 6 ++++- dashboard-ui/useredit.html | 33 ++++++++++++++++++++++------ 6 files changed, 43 insertions(+), 9 deletions(-) diff --git a/dashboard-ui/playlistedit.html b/dashboard-ui/playlistedit.html index 643e784b5..feb02d8fe 100644 --- a/dashboard-ui/playlistedit.html +++ b/dashboard-ui/playlistedit.html @@ -11,6 +11,7 @@
+

  diff --git a/dashboard-ui/scripts/playlistedit.js b/dashboard-ui/scripts/playlistedit.js index 0570090a7..a22ccf57f 100644 --- a/dashboard-ui/scripts/playlistedit.js +++ b/dashboard-ui/scripts/playlistedit.js @@ -53,6 +53,8 @@ var user = response2[0]; var item = response3[0]; + $('.playlistName', page).html(item.Name); + _childrenItemsFunction = getItemsFunction(query); currentItem = item; diff --git a/dashboard-ui/scripts/syncsettings.js b/dashboard-ui/scripts/syncsettings.js index 3ceff3da7..d75cc826d 100644 --- a/dashboard-ui/scripts/syncsettings.js +++ b/dashboard-ui/scripts/syncsettings.js @@ -3,6 +3,7 @@ function loadPage(page, config) { $('#txtSyncTempPath', page).val(config.TemporaryPath || ''); + $('#txtUploadSpeedLimit', page).val(config.UploadSpeedLimitBytes / 1000000); Dashboard.hideLoadingMsg(); } @@ -51,6 +52,7 @@ ApiClient.getNamedConfiguration("sync").done(function (config) { config.TemporaryPath = $('#txtSyncTempPath', form).val(); + config.UploadSpeedLimitBytes = parseInt(parseFloat(($('#txtUploadSpeedLimit', form).val() || '0')) * 1000000); ApiClient.updateNamedConfiguration("sync", config).done(Dashboard.processServerConfigurationUpdateResult); }); diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index 58e1394e2..ea394ee27 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -34,7 +34,6 @@ $('#chkRemoteControlSharedDevices', page).checked(user.Policy.EnableSharedDeviceControl).checkboxradio("refresh"); $('#chkEnableRemoteControlOtherUsers', page).checked(user.Policy.EnableRemoteControlOfOtherUsers).checkboxradio("refresh"); - $('#chkEnableMediaPlayback', page).checked(user.Policy.EnableMediaPlayback).checkboxradio("refresh"); $('#chkEnableDownloading', page).checked(user.Policy.EnableContentDownloading).checkboxradio("refresh"); $('#chkManageLiveTv', page).checked(user.Policy.EnableLiveTvManagement).checkboxradio("refresh"); @@ -43,7 +42,11 @@ $('#chkDisableUserPreferences', page).checked((!user.Policy.EnableUserPreferenceAccess)).checkboxradio("refresh"); + $('#chkEnableMediaPlayback', page).checked(user.Policy.EnableMediaPlayback).checkboxradio("refresh"); + $('#chkEnableMediaPlaybackTranscoding', page).checked(user.Policy.EnableMediaPlaybackTranscoding).checkboxradio("refresh"); + $('#chkEnableSync', page).checked(user.Policy.EnableSync).checkboxradio("refresh"); + $('#chkEnableSyncTranscoding', page).checked(user.Policy.EnableSyncTranscoding).checkboxradio("refresh"); Dashboard.hideLoadingMsg(); } @@ -82,9 +85,12 @@ user.Policy.EnableSharedDeviceControl = $('#chkRemoteControlSharedDevices', page).checked(); user.Policy.EnableMediaPlayback = $('#chkEnableMediaPlayback', page).checked(); + user.Policy.EnableMediaPlaybackTranscoding = $('#chkEnableMediaPlaybackTranscoding', page).checked(); + user.Policy.EnableContentDownloading = $('#chkEnableDownloading', page).checked(); user.Policy.EnableSync = $('#chkEnableSync', page).checked(); + user.Policy.EnableSyncTranscoding = $('#chkEnableSyncTranscoding', page).checked(); ApiClient.updateUser(user).done(function () { diff --git a/dashboard-ui/syncsettings.html b/dashboard-ui/syncsettings.html index 3ff152dab..9ae3e0603 100644 --- a/dashboard-ui/syncsettings.html +++ b/dashboard-ui/syncsettings.html @@ -28,11 +28,15 @@ ${LabelSyncTempPathHelp}
+
  • + + +
    • -
    • diff --git a/dashboard-ui/useredit.html b/dashboard-ui/useredit.html index 564cfe844..ec4e515df 100644 --- a/dashboard-ui/useredit.html +++ b/dashboard-ui/useredit.html @@ -18,7 +18,7 @@

      ${ButtonEditOtherUserPreferences}

      -
      +