diff --git a/emhttp/plugins/dynamix.plugin.manager/PluginInstall.page b/emhttp/plugins/dynamix.plugin.manager/PluginInstall.page index 4de43cdb5..e694b8f84 100644 --- a/emhttp/plugins/dynamix.plugin.manager/PluginInstall.page +++ b/emhttp/plugins/dynamix.plugin.manager/PluginInstall.page @@ -24,7 +24,7 @@ Tag="download" return; } file = file.trim(); - if (!file) return; + if (!file) return console.warn('No plugin file selected'); $.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php', { cmd: 'alert' }, function(data) { @@ -47,11 +47,19 @@ Tag="download" e.preventDefault(); installPlugin($('#plugin_file').val()); }); + + $('#plugin_tree').fileTree({ + root: '/boot/', + top: '/boot/', + filter:'plg', + }, function(file) { + $('#plugin_file').val(file); + }); }); -