mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix directory picker
This commit is contained in:
parent
658f5052da
commit
82b1fd0d53
1 changed files with 19 additions and 0 deletions
|
@ -146,6 +146,25 @@
|
|||
});
|
||||
});
|
||||
|
||||
$('#btnSelectDashboardSourcePath', view).on("click.selectDirectory", function () {
|
||||
|
||||
require(['directorybrowser'], function (directoryBrowser) {
|
||||
|
||||
var picker = new directoryBrowser();
|
||||
|
||||
picker.show({
|
||||
|
||||
callback: function (path) {
|
||||
|
||||
if (path) {
|
||||
view.querySelector('#txtDashboardSourcePath').value = path;
|
||||
}
|
||||
picker.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$('.dashboardGeneralForm', view).off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
view.addEventListener('viewshow', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue