1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-06 11:38:10 +00:00

Rename the navigationcatcher macro to navigator

This commit is contained in:
Jeremy Ruston 2012-10-25 12:55:36 +01:00
parent 7c19b9f5a3
commit 6d397edf30
4 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*\ /*\
title: $:/core/modules/macros/navigationcatcher.js title: $:/core/modules/macros/navigator.js
type: application/javascript type: application/javascript
module-type: macro module-type: macro
@ -13,7 +13,7 @@ Traps navigation events to update a story tiddler and history tiddler. Can also
"use strict"; "use strict";
exports.info = { exports.info = {
name: "navigationcatcher", name: "navigator",
params: { params: {
story: {byName: "default", type: "text"}, // Actually a tiddler, but we don't want it to be a dependency 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 history: {byName: "default", type: "text"}, // Actually a tiddler, but we don't want it to be a dependency

View File

@ -1,7 +1,7 @@
title: $:/templates/PageTemplate title: $:/templates/PageTemplate
<!-- The navigator catches navigation events and updates the story and history tiddlers --> <!-- The navigator catches navigation events and updates the story and history tiddlers -->
<<navigationcatcher >< <<navigator ><
<!-- Zooming chooser --> <!-- Zooming chooser -->
{{navigation-panel{ {{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 --> <!-- 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>< <<reveal state:ViewDropDownState type:popup position:below><
<div class="open"> <div class="open">
{{dropdown-menu tw-suppress-missing-tiddlylink{ {{dropdown-menu tw-suppress-missing-tiddlylink{

View File

@ -1,7 +1,7 @@
title: $:/templates/PageTemplate title: $:/templates/PageTemplate
<!-- The navigator catches navigation events and updates the story and history tiddlers --> <!-- The navigator catches navigation events and updates the story and history tiddlers -->
<<navigationcatcher story:"$:/StoryTiddlers" history:"$:/History" >< <<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
<!-- Zooming chooser --> <!-- Zooming chooser -->
{{navigation-panel{ {{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 --> <!-- 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>< <<reveal state:ViewDropDownState type:popup position:below><
<div class="open"> <div class="open">
{{dropdown-menu tw-suppress-missing-tiddlylink{ {{dropdown-menu tw-suppress-missing-tiddlylink{

View File

@ -1,7 +1,7 @@
title: $:/templates/PageTemplate title: $:/templates/PageTemplate
<!-- The navigator catches navigation events and updates the story and history tiddlers --> <!-- 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 --> <!-- The top navigation bar -->
<div class="navbar navbar-fixed-top"> <div class="navbar navbar-fixed-top">