1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

easier user library setup

This commit is contained in:
Luke Pulverenti 2014-02-21 00:04:11 -05:00
parent 990e9a39c6
commit 22f629080c
16 changed files with 108 additions and 161 deletions

View file

@ -1,10 +1,19 @@
var LoginPage = {
onPageShow: function () {
Dashboard.showLoadingMsg();
var isLocalhost = window.location.toString().toLowerCase().indexOf('localhost') != -1;
if (isLocalhost) {
$('.localhostMessage', this).show();
} else {
$('.localhostMessage', this).hide();
}
// Show all users on localhost
var promise1 = window.location.toString().toLowerCase().indexOf('localhost') == -1 ? ApiClient.getPublicUsers() : ApiClient.getUsers({ IsDisabled: false });
var promise1 = !isLocalhost ? ApiClient.getPublicUsers() : ApiClient.getUsers({ IsDisabled: false });
var promise2 = ApiClient.getServerConfiguration();
$.when(promise1, promise2).done(function (response1, response2) {