Problem: there are no easy ways to create a page from search
Solution: add create new page option to search results
This commit is contained in:
parent
1f6a22966f
commit
3c53e14229
|
@ -20,6 +20,12 @@ function startQuery(query) {
|
|||
.then(res => res.json())
|
||||
.then(data => {
|
||||
let actualResult = [];
|
||||
actualResult.push({
|
||||
ref: query,
|
||||
title: 'Create new page "' + query + '"',
|
||||
line: 'New page',
|
||||
text: 'New page',
|
||||
})
|
||||
$.each(data.hits, (key, value) => {
|
||||
actualResult.push({
|
||||
ref: value.fields.page,
|
||||
|
|
Loading…
Reference in New Issue
Block a user