diff options
Diffstat (limited to 'assets/templates/browser.twig')
-rw-r--r-- | assets/templates/browser.twig | 53 |
1 files changed, 3 insertions, 50 deletions
diff --git a/assets/templates/browser.twig b/assets/templates/browser.twig index 7754ae38..a03f79a9 100644 --- a/assets/templates/browser.twig +++ b/assets/templates/browser.twig @@ -2,7 +2,7 @@ <html xml:lang="{{lang.applocale}}" lang="{{lang.applocale}}" dir="{{lang.applangdir}}"> <head data-headertemplate="{{headertemplate}}"> - <link rel="stylesheet" href="{{subfolder}}/assets/vendor/jstree/themes/phppgadmin/style.css" /> {% include 'components/common_head.twig' %} + {% include 'components/common_head.twig' %} <script src="{{subfolder}}/assets/vendor/jstree/jstree.min.js"></script> <style type="text/css"> @@ -15,55 +15,8 @@ </head> <body class="browser"> - - <div dir="{{lang.applangdir}}"> - - <div class="logo"> - <a href="{{subfolder}}/" target="_parent">{{appName}}</a> - </div> - <div class="refreshTree"> - <a href="{{subfolder}}/src/views/browser" target="browser"> - <img src="{{icon.Refresh}}" alt="{{lang.strrefresh}}" title="{{lang.strrefresh}}" /> - </a> - </div> - - <div id="lazy" class="demo"></div> - - </div> - - <script> - window.jsTree = $('#lazy').jstree({ - "state": { - "key": "jstree" - }, - "plugins": ["state"], - 'core': { - 'data': { - "url": function (node) { - if (node.id === '#') { - return '{{subfolder}}/src/views/browser?action=tree'; - } else { - return node.original.url; - } - } - } - } - }); - if(parent.frames && parent.frames.detail) { - parent.frames.detail.jsTree=window.jsTree; - } - - $('#lazy').on("activate_node.jstree", function (e, data) { - if (window.parent.frames.detail) { - window.parent.frames.detail.location.replace(data.node.a_attr.href); - } - }); - $('#lazy').on("loaded.jstree", function (e, data) { - $('#lazy').data('jstree').show_dots(); - }); - $('#lazy').on('click','.jstree-anchor',function(){ - console.log(this); - }); +{% include 'components/browser_body.twig' %} + <script src="{{subfolder}}/assets/js/jstree_events.js"> </script> </body> |