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

rework dialog

This commit is contained in:
Luke Pulverenti 2015-12-14 09:45:42 -05:00
parent b86d2368f4
commit 996f2504b2
16 changed files with 139 additions and 179 deletions

View file

@ -636,7 +636,6 @@
resolve({
localUser: localUser,
name: connectUser ? connectUser.Name : (localUser ? localUser.Name : null),
canManageServer: localUser ? localUser.Policy.IsAdministrator : false,
imageUrl: image.url,
supportsImageParams: image.supportsParams
});
@ -851,8 +850,8 @@
return new Promise(function (resolve, reject) {
require(['serverdiscovery'], function () {
ServerDiscovery.findServers(1000).then(function (foundServers) {
require(['serverdiscovery'], function (serverDiscovery) {
serverDiscovery.findServers(1000).then(function (foundServers) {
var servers = foundServers.map(function (foundServer) {
@ -974,12 +973,12 @@
function beginWakeServer(server) {
require(['wakeonlan'], function () {
require(['wakeonlan'], function (wakeonlan) {
var infos = server.WakeOnLanInfos || [];
for (var i = 0, length = infos.length; i < length; i++) {
WakeOnLan.send(infos[i]);
wakeonlan.send(infos[i]);
}
});
}

View file

@ -1,6 +1,6 @@
(function (globalScope) {
define([], function () {
globalScope.ServerDiscovery = {
return {
findServers: function (timeoutMs) {
@ -15,4 +15,4 @@
}
};
})(window);
});

View file

@ -1,4 +1,4 @@
(function (globalScope) {
define([], function () {
function send(info) {
@ -8,8 +8,8 @@
});
}
globalScope.WakeOnLan = {
return {
send: send
};
})(window);
});