Fix ajax URL of managing plugins
This commit is contained in:
parent
235141e2d9
commit
4e546076ef
2
plugins
2
plugins
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4f2b157b7fad1eb2c753faad19ac92c424cbecd5
|
Subproject commit c8dca41c5f06c70437c59ed5817547719b91aff0
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
function enablePlugin(name) {
|
function enablePlugin(name) {
|
||||||
fetch({
|
fetch({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: url(`admin/plugins?action=enable&name=${name}`),
|
url: url(`admin/plugins/manage?action=enable&name=${name}`),
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
}).then(({ errno, msg }) => {
|
}).then(({ errno, msg }) => {
|
||||||
if (errno == 0) {
|
if (errno == 0) {
|
||||||
|
|
@ -21,7 +21,7 @@ function enablePlugin(name) {
|
||||||
function disablePlugin(name) {
|
function disablePlugin(name) {
|
||||||
fetch({
|
fetch({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: url(`admin/plugins?action=disable&name=${name}`),
|
url: url(`admin/plugins/manage?action=disable&name=${name}`),
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
}).then(({ errno, msg }) => {
|
}).then(({ errno, msg }) => {
|
||||||
if (errno == 0) {
|
if (errno == 0) {
|
||||||
|
|
@ -41,7 +41,7 @@ function deletePlugin(name) {
|
||||||
showCancelButton: true
|
showCancelButton: true
|
||||||
}).then(() => fetch({
|
}).then(() => fetch({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: url(`admin/plugins?action=delete&name=${name}`),
|
url: url(`admin/plugins/manage?action=delete&name=${name}`),
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
})).then(({ errno, msg }) => {
|
})).then(({ errno, msg }) => {
|
||||||
if (errno == 0) {
|
if (errno == 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user