mirror of
https://github.com/flynx/pWiki.git
synced 2026-01-07 10:31:08 +00:00
added history control via URLs -- does not work yet...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c170fafe3f
commit
18fe95b436
@ -92,6 +92,14 @@ var go = (path) => {
|
|||||||
path = path.trim()
|
path = path.trim()
|
||||||
path = path[0] == '[' ? path.slice(1, -1) : path
|
path = path[0] == '[' ? path.slice(1, -1) : path
|
||||||
|
|
||||||
|
// history stuff...
|
||||||
|
if(path == 'History/back'){
|
||||||
|
return history.back()
|
||||||
|
|
||||||
|
} else if(path == 'History/forward'){
|
||||||
|
return history.forward()
|
||||||
|
}
|
||||||
|
|
||||||
Wiki.location = path
|
Wiki.location = path
|
||||||
|
|
||||||
history.pushState({
|
history.pushState({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user