mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
encapsulate bower path
This commit is contained in:
parent
c3765bb90e
commit
8c75fcc5f7
5 changed files with 83 additions and 88 deletions
|
@ -258,23 +258,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
function loadJsTree() {
|
||||
|
||||
var deferred = DeferredBuilder.Deferred();
|
||||
|
||||
require([
|
||||
'bower_components/jstree/dist/jstree.min'
|
||||
], function () {
|
||||
|
||||
Dashboard.importCss('thirdparty/jstree/themes/default/style.min.css');
|
||||
deferred.resolve();
|
||||
});
|
||||
return deferred.promise();
|
||||
}
|
||||
|
||||
function initializeTree(page, currentUser, openItems, selectedId) {
|
||||
|
||||
loadJsTree().then(function () {
|
||||
require(['jstree'], function () {
|
||||
initializeTreeInternal(page, currentUser, openItems, selectedId);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue