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

Switch off of jQuery

This commit is contained in:
Matt Montgomery 2020-04-13 16:23:16 -05:00
parent fa9e2b476b
commit fdfdcd60fe
8 changed files with 35 additions and 21 deletions

View file

@ -15,12 +15,14 @@ define(['require', 'apphost', 'layoutManager', 'focusManager', 'globalize', 'loa
}
function list(apiClient) {
var elem = $("#quickConnectIncoming");
elem.html("");
console.debug("getting json");
apiClient.getJSON("/QuickConnect/List").then(json => {
console.debug("raw json", json);
var elem = $("#quickConnectIncoming");
elem.html("");
console.debug("raw json", json, "length is", json.length);
for(var i = 0; i < json.length; i++) {
var current = json[i];
console.debug("current is", current);
var html = "<li>" + current.Code + " - " + current.FriendlyName + " - ";
if(!current.Authenticated) {