reimplement feature 'encoded url' (#16)
change symbol names for better readability beautify location-sidebar cleanup sourcecode * change symbols to unicode-names * reimplement feature 'encoded url'
This commit is contained in:
parent
51c1c57e48
commit
8497a5f833
3 changed files with 8 additions and 6 deletions
lib
|
@ -78,6 +78,8 @@ define(function () {
|
|||
if (!s)
|
||||
return false
|
||||
|
||||
s = decodeURIComponent(s)
|
||||
|
||||
if (!s.startsWith("#!"))
|
||||
return false
|
||||
|
||||
|
@ -94,7 +96,7 @@ define(function () {
|
|||
var id
|
||||
|
||||
if (args[0] === "n") {
|
||||
id = decodeURIComponent(args[1])
|
||||
id = args[1]
|
||||
if (id in objects.nodes) {
|
||||
currentObject = { node: objects.nodes[id] }
|
||||
gotoNode(objects.nodes[id])
|
||||
|
@ -103,7 +105,7 @@ define(function () {
|
|||
}
|
||||
|
||||
if (args[0] === "l") {
|
||||
id = decodeURIComponent(args[1])
|
||||
id = args[1]
|
||||
if (id in objects.links) {
|
||||
currentObject = { link: objects.links[id] }
|
||||
gotoLink(objects.links[id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue