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); + }); }); -
+

_(Enter URL of remote plugin file or local plugin file)_

diff --git a/emhttp/plugins/dynamix.plugin.manager/Plugins.page b/emhttp/plugins/dynamix.plugin.manager/Plugins.page index 661fd3c28..86811244e 100644 --- a/emhttp/plugins/dynamix.plugin.manager/Plugins.page +++ b/emhttp/plugins/dynamix.plugin.manager/Plugins.page @@ -145,7 +145,6 @@ function loadlist(id,check) { } $(function() { initlist(); - $('#plugin_tree').fileTree({root:'/boot/',top:'/boot/',filter:'plg'}, function(file) {$('#plugin_file').val(file);}); $('.tabs').append(""); $('.tabs').append(""); $('.tabs').append("");