mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 07:25:21 +02:00
fix bug
This commit is contained in:
parent
5c9bafe069
commit
9a78c10f06
3 changed files with 4 additions and 10741 deletions
10740
package-lock.json
generated
10740
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -86,8 +86,10 @@ router.post('/page/:id', multer.any(), async (req, res) => {
|
|||
if (page._parent !== parent) {
|
||||
await PagesOrder.move(page._parent, parent, id);
|
||||
} else {
|
||||
if (putAbovePageId && putAbovePageId !== '0') {
|
||||
await PagesOrder.update(page._id, page._parent, putAbovePageId);
|
||||
}
|
||||
}
|
||||
|
||||
page = await Pages.update(id, {title, body, parent});
|
||||
res.json({
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
<span>
|
||||
Put Above
|
||||
<select name="above">
|
||||
<option value="0">—</option>
|
||||
{% for _page in parentsChildrenOrdered %}
|
||||
<option value="{{ _page._id }}">{{ _page.title }}</option>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue