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

40 lines
750 B
JavaScript
Raw Normal View History

2014-03-26 15:21:29 -04:00
(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);