mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-08 10:12:37 -08:00
Rename the navigationcatcher macro to navigator
This commit is contained in:
parent
7c19b9f5a3
commit
6d397edf30
4 changed files with 7 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*\
|
||||
title: $:/core/modules/macros/navigationcatcher.js
|
||||
title: $:/core/modules/macros/navigator.js
|
||||
type: application/javascript
|
||||
module-type: macro
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ Traps navigation events to update a story tiddler and history tiddler. Can also
|
|||
"use strict";
|
||||
|
||||
exports.info = {
|
||||
name: "navigationcatcher",
|
||||
name: "navigator",
|
||||
params: {
|
||||
story: {byName: "default", type: "text"}, // Actually a tiddler, but we don't want it to be a dependency
|
||||
history: {byName: "default", type: "text"}, // Actually a tiddler, but we don't want it to be a dependency
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
title: $:/templates/PageTemplate
|
||||
|
||||
<!-- The navigator catches navigation events and updates the story and history tiddlers -->
|
||||
<<navigationcatcher ><
|
||||
<<navigator ><
|
||||
|
||||
<!-- Zooming chooser -->
|
||||
{{navigation-panel{
|
||||
|
|
@ -76,7 +76,7 @@ title: $:/templates/PageTemplate
|
|||
}}}
|
||||
|
||||
<!-- This navigator intercepts navigation events and sets the text of the specified tiddler to the target tiddler title -->
|
||||
<<navigationcatcher set:[[$:/CurrentView]]><
|
||||
<<navigator set:[[$:/CurrentView]]><
|
||||
<<reveal state:ViewDropDownState type:popup position:below><
|
||||
<div class="open">
|
||||
{{dropdown-menu tw-suppress-missing-tiddlylink{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
title: $:/templates/PageTemplate
|
||||
|
||||
<!-- The navigator catches navigation events and updates the story and history tiddlers -->
|
||||
<<navigationcatcher story:"$:/StoryTiddlers" history:"$:/History" ><
|
||||
<<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
|
||||
|
||||
<!-- Zooming chooser -->
|
||||
{{navigation-panel{
|
||||
|
|
@ -51,7 +51,7 @@ title: $:/templates/PageTemplate
|
|||
}}}
|
||||
|
||||
<!-- This navigator intercepts navigation events and sets the text of the specified tiddler to the target tiddler title -->
|
||||
<<navigationcatcher set:[[$:/CurrentView]]><
|
||||
<<navigator set:[[$:/CurrentView]]><
|
||||
<<reveal state:ViewDropDownState type:popup position:below><
|
||||
<div class="open">
|
||||
{{dropdown-menu tw-suppress-missing-tiddlylink{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
title: $:/templates/PageTemplate
|
||||
|
||||
<!-- The navigator catches navigation events and updates the story and history tiddlers -->
|
||||
<<navigationcatcher story:"$:/StoryTiddlers" history:"$:/History" ><
|
||||
<<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
|
||||
|
||||
<!-- The top navigation bar -->
|
||||
<div class="navbar navbar-fixed-top">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue