From 08e80d6e020444170903e9e4fbd6d3e9a793a8a8 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 20 Jun 2012 18:03:19 +0100 Subject: [PATCH] Completed renaming the scroller storyview to "classic" --- core/modules/macros/story/story.js | 2 +- core/modules/macros/story/views/classic.js | 8 ++++---- core/templates/PageTemplate.tid | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/modules/macros/story/story.js b/core/modules/macros/story/story.js index b6d14e8c0..d70b9621a 100644 --- a/core/modules/macros/story/story.js +++ b/core/modules/macros/story/story.js @@ -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); } diff --git a/core/modules/macros/story/views/classic.js b/core/modules/macros/story/views/classic.js index f27bab725..06b232fd6 100644 --- a/core/modules/macros/story/views/classic.js +++ b/core/modules/macros/story/views/classic.js @@ -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; })(); diff --git a/core/templates/PageTemplate.tid b/core/templates/PageTemplate.tid index c9c030c90..8979965a4 100644 --- a/core/templates/PageTemplate.tid +++ b/core/templates/PageTemplate.tid @@ -1,7 +1,7 @@ title: $:/templates/PageTemplate
-<< +<< {{navigation-panel{ <<<>>> }}} @@ -26,7 +26,7 @@ title: $:/templates/PageTemplate <<
{{dropdown-menu tw-suppress-missing-tiddlylink{ -* << << >> Classic>> +* << << >> Classic>> * << << >> Zoomin>> * << << >> Pasteboard>> }}}