diff --git a/dashboard-ui/library.html b/dashboard-ui/library.html index 7473fe034b..3eac1b5028 100644 --- a/dashboard-ui/library.html +++ b/dashboard-ui/library.html @@ -10,7 +10,8 @@
Media Folders - Settings + Path Mapping + Other Settings

diff --git a/dashboard-ui/librarypathmapping.html b/dashboard-ui/librarypathmapping.html new file mode 100644 index 0000000000..f48d33e300 --- /dev/null +++ b/dashboard-ui/librarypathmapping.html @@ -0,0 +1,30 @@ + + + + Media Library + + +

+ +
+
+ + +
+ + +
+ +
+
+ + +
+ + diff --git a/dashboard-ui/librarysettings.html b/dashboard-ui/librarysettings.html index b40a63f4d7..31a77c5bd6 100644 --- a/dashboard-ui/librarysettings.html +++ b/dashboard-ui/librarysettings.html @@ -10,7 +10,8 @@
diff --git a/dashboard-ui/scripts/librarypathmapping.js b/dashboard-ui/scripts/librarypathmapping.js new file mode 100644 index 0000000000..1c654a180c --- /dev/null +++ b/dashboard-ui/scripts/librarypathmapping.js @@ -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);