mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user