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

added path mapping page stub

This commit is contained in:
Luke Pulverenti 2014-01-29 15:57:17 -05:00
parent 24373b5706
commit 00d9a83ac7
4 changed files with 78 additions and 2 deletions

View file

@ -10,7 +10,8 @@
<div class="content-primary"> <div class="content-primary">
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true"> <div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="#" data-role="button" class="ui-btn-active">Media Folders</a> <a href="#" data-role="button" class="ui-btn-active">Media Folders</a>
<a href="librarysettings.html" data-role="button">Settings</a> <a href="librarypathmapping.html" data-role="button">Path Mapping</a>
<a href="librarysettings.html" data-role="button">Other Settings</a>
</div> </div>
<div class="readOnlyContent"> <div class="readOnlyContent">
<p> <p>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Media Library</title>
</head>
<body>
<div id="libraryPathMappingPage" data-role="page" class="page type-interior mediaLibraryPage">
<div data-role="content">
<div class="content-primary">
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="library.html" data-role="button">Media Folders</a>
<a href="#" data-role="button" class="ui-btn-active">Path Mapping</a>
<a href="librarysettings.html" data-role="button">Other Settings</a>
</div>
<form id="libraryPathMappingForm">
</form>
</div>
</div>
<script type="text/javascript">
$('.libraryPathMappingForm').off('submit', LibraryPathMappingPage.onSubmit).on('submit', LibraryPathMappingPage.onSubmit);
</script>
</div>
</body>
</html>

View file

@ -10,7 +10,8 @@
<div class="content-primary"> <div class="content-primary">
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true"> <div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="library.html" data-role="button">Media Folders</a> <a href="library.html" data-role="button">Media Folders</a>
<a href="#" data-role="button" class="ui-btn-active">Settings</a> <a href="librarypathmapping.html" data-role="button">Path Mapping</a>
<a href="#" data-role="button" class="ui-btn-active">Other Settings</a>
</div> </div>
<form id="librarySettingsForm"> <form id="librarySettingsForm">

View file

@ -0,0 +1,44 @@
(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);