1
0
Fork 0
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:
Luke Pulverenti 2014-03-26 15:21:29 -04:00
parent adc96abf4e
commit da74410dfb
5 changed files with 217 additions and 1 deletions

View 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);