Fix ajax URL of managing plugins

This commit is contained in:
printempw 2017-07-28 17:51:18 +08:00
parent 235141e2d9
commit 4e546076ef
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4f2b157b7fad1eb2c753faad19ac92c424cbecd5
Subproject commit c8dca41c5f06c70437c59ed5817547719b91aff0

View File

@ -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) {