diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js index 1e917e6305..457ebffd73 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -235,6 +235,10 @@ html += '
  • ' + Globalize.translate('ButtonOpen') + '
  • '; html += '
  • ' + Globalize.translate('ButtonOpenInNewTab') + '
  • '; + if (user.Configuration.IsAdministrator && commands.indexOf('edit') != -1) { + html += '
  • ' + Globalize.translate('ButtonEdit') + '
  • '; + } + if (MediaController.canPlay(item)) { html += '
  • ' + Globalize.translate('ButtonPlay') + '
  • '; } @@ -243,6 +247,10 @@ html += '
  • ' + Globalize.translate('ButtonResume') + '
  • '; } + if (commands.indexOf('trailer') != -1) { + html += '
  • ' + Globalize.translate('ButtonPlayTrailer') + '
  • '; + } + if (MediaController.canQueueMediaType(item.MediaType)) { html += '
  • ' + Globalize.translate('ButtonQueue') + '
  • '; } @@ -255,14 +263,6 @@ html += '
  • ' + Globalize.translate('ButtonShuffle') + '
  • '; } - if (commands.indexOf('trailer') != -1) { - html += '
  • ' + Globalize.translate('ButtonPlayTrailer') + '
  • '; - } - - if (user.Configuration.IsAdministrator && commands.indexOf('edit') != -1) { - html += '
  • ' + Globalize.translate('ButtonEdit') + '
  • '; - } - html += ''; html += ''; diff --git a/dashboard-ui/scripts/userparentalcontrol.js b/dashboard-ui/scripts/userparentalcontrol.js index 19549361c1..254eeac928 100644 --- a/dashboard-ui/scripts/userparentalcontrol.js +++ b/dashboard-ui/scripts/userparentalcontrol.js @@ -242,7 +242,7 @@ var promise3 = ApiClient.getParentalRatings(); - var promise4 = $.getJSON(ApiClient.getUrl("Library/MediaFolders")); + var promise4 = $.getJSON(ApiClient.getUrl("Library/MediaFolders", {IsHidden: false})); var promise5 = $.getJSON(ApiClient.getUrl("Channels"));