mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05:00
Rename bulk-progress to bulk_progress
This commit is contained in:
@@ -218,7 +218,7 @@ const selectedIDs = () => {
|
||||
const bulkProgress = (action, el) => {
|
||||
const tid = $(el).attr('data-id');
|
||||
const ids = selectedIDs();
|
||||
const url = `${base_url}api/bulk-progress/${action}/${tid}`;
|
||||
const url = `${base_url}api/bulk_progress/${action}/${tid}`;
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: url,
|
||||
|
||||
@@ -311,7 +311,7 @@ class APIRouter < Router
|
||||
Koa.path "tid", desc: "Title ID"
|
||||
Koa.body ref: "$strAry", desc: "An array of entry IDs"
|
||||
Koa.response 200, ref: "$result"
|
||||
post "/api/bulk-progress/:action/:tid" do |env|
|
||||
post "/api/bulk_progress/:action/:tid" do |env|
|
||||
begin
|
||||
username = get_username env
|
||||
title = (@context.library.get_title env.params.url["tid"]).not_nil!
|
||||
|
||||
Reference in New Issue
Block a user