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:
parent
fa9e2b476b
commit
fdfdcd60fe
8 changed files with 35 additions and 21 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue