diff --git a/plugins b/plugins index 4f2b157b..c8dca41c 160000 --- a/plugins +++ b/plugins @@ -1 +1 @@ -Subproject commit 4f2b157b7fad1eb2c753faad19ac92c424cbecd5 +Subproject commit c8dca41c5f06c70437c59ed5817547719b91aff0 diff --git a/resources/assets/src/js/admin/plugins.js b/resources/assets/src/js/admin/plugins.js index 656e4093..913b8da0 100644 --- a/resources/assets/src/js/admin/plugins.js +++ b/resources/assets/src/js/admin/plugins.js @@ -5,7 +5,7 @@ function enablePlugin(name) { fetch({ type: 'POST', - url: url(`admin/plugins?action=enable&name=${name}`), + url: url(`admin/plugins/manage?action=enable&name=${name}`), dataType: 'json' }).then(({ errno, msg }) => { if (errno == 0) { @@ -21,7 +21,7 @@ function enablePlugin(name) { function disablePlugin(name) { fetch({ type: 'POST', - url: url(`admin/plugins?action=disable&name=${name}`), + url: url(`admin/plugins/manage?action=disable&name=${name}`), dataType: 'json' }).then(({ errno, msg }) => { if (errno == 0) { @@ -41,7 +41,7 @@ function deletePlugin(name) { showCancelButton: true }).then(() => fetch({ type: 'POST', - url: url(`admin/plugins?action=delete&name=${name}`), + url: url(`admin/plugins/manage?action=delete&name=${name}`), dataType: 'json' })).then(({ errno, msg }) => { if (errno == 0) {