mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add dlna service methods
This commit is contained in:
parent
adc96abf4e
commit
da74410dfb
5 changed files with 217 additions and 1 deletions
39
dashboard-ui/scripts/dlnaprofile.js
Normal file
39
dashboard-ui/scripts/dlnaprofile.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
(function ($, document, window) {
|
||||
|
||||
function loadProfile(page) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var id = getParameterByName('id');
|
||||
var url = id ? 'Dlna/Profiles/' + id :
|
||||
'Dlna/Profiles/Default';
|
||||
|
||||
$.getJSON(ApiClient.getUrl(url)).done(function (result) {
|
||||
|
||||
renderProfile(page, result);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
||||
function renderProfile(page, profile) {
|
||||
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#dlnaProfilePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
loadProfile(page);
|
||||
|
||||
});
|
||||
|
||||
window.DlnaProfilePage = {
|
||||
|
||||
onSubmit: function() {
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, document, window);
|
Loading…
Add table
Add a link
Reference in a new issue