mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +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[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
|
||||
|
||||
history.pushState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user