mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display news on dashboard home page
This commit is contained in:
parent
1fa7dcdb2b
commit
b932873b1d
5 changed files with 205 additions and 88 deletions
13
ApiClient.js
13
ApiClient.js
|
@ -197,6 +197,19 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
return webSocket && (webSocket.readyState === WebSocket.OPEN || webSocket.readyState === WebSocket.CONNECTING);
|
||||
};
|
||||
|
||||
self.getProductNews = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
var url = self.getUrl("News/Product", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets an item from the server
|
||||
* Omit itemId to get the root folder.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue