mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
Completed renaming the scroller storyview to "classic"
This commit is contained in:
parent
b3c0bec838
commit
08e80d6e02
@ -182,7 +182,7 @@ exports.postRenderInDom = function() {
|
|||||||
this.storyview = new StoryView(this);
|
this.storyview = new StoryView(this);
|
||||||
}
|
}
|
||||||
if(!this.storyview) {
|
if(!this.storyview) {
|
||||||
StoryView = this.wiki.macros.story.viewers.scroller;
|
StoryView = this.wiki.macros.story.viewers.classic;
|
||||||
if(StoryView) {
|
if(StoryView) {
|
||||||
this.storyview = new StoryView(this);
|
this.storyview = new StoryView(this);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*\
|
/*\
|
||||||
title: $:/core/modules/macros/story/views/scroller.js
|
title: $:/core/modules/macros/story/views/classic.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: storyview
|
module-type: storyview
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ function scrollIntoView(element) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Scroller(story) {
|
function ClassicScroller(story) {
|
||||||
this.story = story;
|
this.story = story;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,10 +56,10 @@ Visualise navigation to the specified tiddler macro, optionally specifying a sou
|
|||||||
isNew: true if the node we're navigating to has just been added to the DOM
|
isNew: true if the node we're navigating to has just been added to the DOM
|
||||||
sourceNode: optional tree node that initiated the navigation
|
sourceNode: optional tree node that initiated the navigation
|
||||||
*/
|
*/
|
||||||
Scroller.prototype.navigate = function(targetTiddlerNode,isNew,sourceEvent) {
|
ClassicScroller.prototype.navigate = function(targetTiddlerNode,isNew,sourceEvent) {
|
||||||
scrollIntoView(targetTiddlerNode.domNode);
|
scrollIntoView(targetTiddlerNode.domNode);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.scroller = Scroller;
|
exports.classic = ClassicScroller;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/templates/PageTemplate
|
title: $:/templates/PageTemplate
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<<story story:"$:/StoryTiddlers" storyviewTiddler:[[$:/CurrentView]] storyview:scroller ><
|
<<story story:"$:/StoryTiddlers" storyviewTiddler:[[$:/CurrentView]] storyview:classic ><
|
||||||
{{navigation-panel{
|
{{navigation-panel{
|
||||||
<<chooser><<<list all>>>>
|
<<chooser><<<list all>>>>
|
||||||
}}}
|
}}}
|
||||||
@ -26,7 +26,7 @@ title: $:/templates/PageTemplate
|
|||||||
<<reveal state:ViewDropDownState type:popup><
|
<<reveal state:ViewDropDownState type:popup><
|
||||||
<div class="open">
|
<div class="open">
|
||||||
{{dropdown-menu tw-suppress-missing-tiddlylink{
|
{{dropdown-menu tw-suppress-missing-tiddlylink{
|
||||||
* <<link to:scroller>< <<hide tiddler:[[$:/CurrentView]] notequal:scroller>< <span class="tw-ticked-menu-item"></span> >> Classic>>
|
* <<link to:classic>< <<hide tiddler:[[$:/CurrentView]] notequal:classic>< <span class="tw-ticked-menu-item"></span> >> Classic>>
|
||||||
* <<link to:zoomin>< <<hide tiddler:[[$:/CurrentView]] notequal:zoomin>< <span class="tw-ticked-menu-item"></span> >> Zoomin>>
|
* <<link to:zoomin>< <<hide tiddler:[[$:/CurrentView]] notequal:zoomin>< <span class="tw-ticked-menu-item"></span> >> Zoomin>>
|
||||||
* <<link to:pasteboard>< <<hide tiddler:[[$:/CurrentView]] notequal:pasteboard>< <span class="tw-ticked-menu-item"></span> >> Pasteboard>>
|
* <<link to:pasteboard>< <<hide tiddler:[[$:/CurrentView]] notequal:pasteboard>< <span class="tw-ticked-menu-item"></span> >> Pasteboard>>
|
||||||
}}}
|
}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user