1
0
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:
Jeremy Ruston 2012-06-20 18:03:19 +01:00
parent b3c0bec838
commit 08e80d6e02
3 changed files with 7 additions and 7 deletions

View File

@ -182,7 +182,7 @@ exports.postRenderInDom = function() {
this.storyview = new StoryView(this);
}
if(!this.storyview) {
StoryView = this.wiki.macros.story.viewers.scroller;
StoryView = this.wiki.macros.story.viewers.classic;
if(StoryView) {
this.storyview = new StoryView(this);
}

View File

@ -1,5 +1,5 @@
/*\
title: $:/core/modules/macros/story/views/scroller.js
title: $:/core/modules/macros/story/views/classic.js
type: application/javascript
module-type: storyview
@ -46,7 +46,7 @@ function scrollIntoView(element) {
}
}
function Scroller(story) {
function ClassicScroller(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
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);
};
exports.scroller = Scroller;
exports.classic = ClassicScroller;
})();

View File

@ -1,7 +1,7 @@
title: $:/templates/PageTemplate
<div class="container-fluid">
<<story story:"$:/StoryTiddlers" storyviewTiddler:[[$:/CurrentView]] storyview:scroller ><
<<story story:"$:/StoryTiddlers" storyviewTiddler:[[$:/CurrentView]] storyview:classic ><
{{navigation-panel{
<<chooser><<<list all>>>>
}}}
@ -26,7 +26,7 @@ title: $:/templates/PageTemplate
<<reveal state:ViewDropDownState type:popup><
<div class="open">
{{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:pasteboard>< <<hide tiddler:[[$:/CurrentView]] notequal:pasteboard>< <span class="tw-ticked-menu-item"></span> >> Pasteboard>>
}}}