diff --git a/dashboard-ui/bower_components/emby-apiclient/apiclient.js b/dashboard-ui/bower_components/emby-apiclient/apiclient.js index 9a56f8e1d9..ab55290e68 100644 --- a/dashboard-ui/bower_components/emby-apiclient/apiclient.js +++ b/dashboard-ui/bower_components/emby-apiclient/apiclient.js @@ -1739,7 +1739,7 @@ * Adds a virtual folder * @param {String} name */ - self.addVirtualFolder = function (name, type, refreshLibrary, initialPaths, libraryOptions) { + self.addVirtualFolder = function (name, type, refreshLibrary, libraryOptions) { if (!name) { throw new Error("null name"); @@ -1762,7 +1762,6 @@ type: "POST", url: url, data: JSON.stringify({ - Paths: initialPaths, LibraryOptions: libraryOptions }), contentType: 'application/json' @@ -1817,7 +1816,7 @@ * Adds an additional mediaPath to an existing virtual folder * @param {String} name */ - self.addMediaPath = function (virtualFolderName, mediaPath, refreshLibrary) { + self.addMediaPath = function (virtualFolderName, mediaPath, networkSharePath, refreshLibrary) { if (!virtualFolderName) { throw new Error("null virtualFolderName"); @@ -1829,15 +1828,50 @@ var url = "Library/VirtualFolders/Paths"; + var pathInfo = { + Path: mediaPath + }; + if (networkSharePath) { + pathInfo.NetworkPath = networkSharePath; + } + url = self.getUrl(url, { - refreshLibrary: refreshLibrary ? true : false, - path: mediaPath, - name: virtualFolderName + refreshLibrary: refreshLibrary ? true : false }); return self.ajax({ type: "POST", - url: url + url: url, + data: JSON.stringify({ + Name: virtualFolderName, + PathInfo: pathInfo + }), + contentType: 'application/json' + }); + }; + + self.updateMediaPath = function (virtualFolderName, pathInfo) { + + if (!virtualFolderName) { + throw new Error("null virtualFolderName"); + } + + if (!pathInfo) { + throw new Error("null pathInfo"); + } + + var url = "Library/VirtualFolders/Paths/Update"; + + url = self.getUrl(url); + + return self.ajax({ + type: "POST", + url: url, + data: JSON.stringify({ + Name: virtualFolderName, + PathInfo: pathInfo + }), + contentType: 'application/json' }); }; diff --git a/dashboard-ui/bower_components/emby-webcomponents/itemhovermenu/itemhovermenu.js b/dashboard-ui/bower_components/emby-webcomponents/itemhovermenu/itemhovermenu.js index a24fe6488d..e02e083a62 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/itemhovermenu/itemhovermenu.js +++ b/dashboard-ui/bower_components/emby-webcomponents/itemhovermenu/itemhovermenu.js @@ -243,7 +243,7 @@ showOverlayTimeout = setTimeout(function () { onShowTimerExpired(card); - }, 1000); + }, 1200); } function preventTouchHover() { diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html index 0b5610bfd7..c45dcc38a7 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingfields.template.html @@ -17,6 +17,10 @@ color: #cc3333; } + .manageButtonText { + text-transform: none; + } + @media all and (max-width: 440px) { .manageButtonText { diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.css b/dashboard-ui/components/directorybrowser/directorybrowser.css index 7822a3bf94..2fe861ee16 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.css +++ b/dashboard-ui/components/directorybrowser/directorybrowser.css @@ -12,5 +12,4 @@ background: #fff3a5; padding: 1em; border-radius: 5px; - margin-top: 2em; } \ No newline at end of file diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index 5d70e2fa9a..5d73df62e6 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'listViewStyle', 'emby-input', 'emby-button', 'paper-icon-button-light', 'css!./directorybrowser', 'formDialogStyle'], function (dialogHelper, $) { +define(['dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'emby-button', 'paper-icon-button-light', 'css!./directorybrowser', 'formDialogStyle'], function (dialogHelper, dom) { var systemInfo; function getSystemInfo() { @@ -29,12 +29,6 @@ } Dashboard.showLoadingMsg(); - if (path) { - $('.networkHeadline').hide(); - } else { - $('.networkHeadline').show(); - } - var promises = []; if (path === "Network") { @@ -53,7 +47,7 @@ var folders = responses[0]; var parentPath = responses[1] || ''; - $('#txtDirectoryPickerPath', page).val(path || ""); + page.querySelector('#txtDirectoryPickerPath').value = path || ""; var html = ''; @@ -75,14 +69,14 @@ html += getItem("lnkPath lnkDirectory", "", "Network", Globalize.translate('ButtonNetwork')); } - $('.results', page).html(html); + page.querySelector('.results').innerHTML = html; Dashboard.hideLoadingMsg(); }, function () { - $('#txtDirectoryPickerPath', page).val(""); - $('.results', page).html(''); + page.querySelector('#txtDirectoryPickerPath').value = ""; + page.querySelector('.results').innerHTML = ''; Dashboard.hideLoadingMsg(); }); @@ -108,44 +102,63 @@ var html = ''; html += '
'; - html += instruction; - html += Globalize.translate('MessageDirectoryPickerInstruction') - .replace('{0}', '\\\\server') - .replace('{1}', '\\\\192.168.1.101'); + html += '