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/librarypathmapping.js

45 lines
858 B
JavaScript
Raw Normal View History

2014-01-29 15:57:17 -05:00
(function ($, document, window) {
function loadPage(page, config) {
Dashboard.hideLoadingMsg();
}
$(document).on('pageshow', ".libraryPathMappingForm", function () {
Dashboard.showLoadingMsg();
var page = this;
ApiClient.getServerConfiguration().done(function (config) {
loadPage(page, config);
});
});
window.LibraryPathMappingPage = {
onSubmit: function () {
Dashboard.showLoadingMsg();
var form = this;
ApiClient.getServerConfiguration().done(function (config) {
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
});
// Disable default form submission
return false;
}
};
})(jQuery, document, window);