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

rework directory picker

This commit is contained in:
Luke Pulverenti 2015-10-13 15:22:45 -04:00
parent 4670ba6fbf
commit 5c4307cf85
31 changed files with 546 additions and 370 deletions

View file

@ -102,17 +102,20 @@
$('#btnSelectDashboardSourcePath', page).on("click.selectDirectory", function () {
var picker = new DirectoryBrowser(page);
require(['directorybrowser'], function (directoryBrowser) {
picker.show({
var picker = new directoryBrowser();
callback: function (path) {
picker.show({
if (path) {
$('#txtDashboardSourcePath', page).val(path);
callback: function (path) {
if (path) {
$('#txtDashboardSourcePath', page).val(path);
}
picker.close();
}
picker.close();
}
});
});
});