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
|
@ -73,22 +73,25 @@
|
|||
|
||||
$('#btnSelectMetadataPath', page).on("click.selectDirectory", function () {
|
||||
|
||||
var picker = new DirectoryBrowser(page);
|
||||
require(['directorybrowser'], function (directoryBrowser) {
|
||||
|
||||
picker.show({
|
||||
var picker = new directoryBrowser();
|
||||
|
||||
picker.show({
|
||||
|
||||
callback: function (path) {
|
||||
callback: function (path) {
|
||||
if (path) {
|
||||
$('#txtMetadataPath', page).val(path);
|
||||
}
|
||||
picker.close();
|
||||
},
|
||||
|
||||
if (path) {
|
||||
$('#txtMetadataPath', page).val(path);
|
||||
}
|
||||
picker.close();
|
||||
},
|
||||
header: Globalize.translate('HeaderSelectMetadataPath'),
|
||||
|
||||
header: Globalize.translate('HeaderSelectMetadataPath'),
|
||||
|
||||
instruction: Globalize.translate('HeaderSelectMetadataPathHelp')
|
||||
instruction: Globalize.translate('HeaderSelectMetadataPathHelp')
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('.advancedMetadataConfigurationForm').on('submit', onSubmit).on('submit', onSubmit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue