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

fixed notification styles for ie

This commit is contained in:
Luke Pulverenti 2013-07-15 21:36:18 -04:00
parent d2077f43d4
commit 120a1b467d
4 changed files with 13 additions and 7 deletions

View file

@ -3,7 +3,8 @@
onPageShow: function () {
Dashboard.showLoadingMsg();
var promise1 = ApiClient.getPublicUsers();
// Show all users on localhost
var promise1 = window.location.toString().toLowerCase().indexOf('localhost') == -1 ? ApiClient.getPublicUsers() : ApiClient.getUsers({ IsDisabled: false });
var promise2 = ApiClient.getServerConfiguration();
$.when(promise1, promise2).done(function (response1, response2) {
@ -17,9 +18,6 @@
}).length || !users.length;
// Always display users on localhost, just in case they forgot
showManualForm &= window.location.toString().toLowerCase().indexOf('localhost') == -1;
if (showManualForm) {
$('#divUsers', '#loginPage').hide();
@ -71,7 +69,7 @@
ApiClient.authenticateUserByName(username, password).done(function (result) {
var user = result.User;
Dashboard.setCurrentUser(user.Id);
if (user.Configuration.IsAdministrator) {