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:
parent
4670ba6fbf
commit
5c4307cf85
31 changed files with 546 additions and 370 deletions
|
@ -35,17 +35,19 @@
|
|||
|
||||
$('#btnSelectSyncTempPath', 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) {
|
||||
$('#txtSyncTempPath', page).val(path);
|
||||
callback: function (path) {
|
||||
if (path) {
|
||||
$('#txtSyncTempPath', page).val(path);
|
||||
}
|
||||
picker.close();
|
||||
}
|
||||
picker.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue