From 547c9a2814c6e6282108bd8906b58562c8ab06c7 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 20 Oct 2024 18:41:23 +0200 Subject: [PATCH] correctly name variables --- core/modules/storyviews/classic.js | 2 +- core/modules/storyviews/pop.js | 2 +- core/modules/storyviews/zoomin.js | 2 +- core/ui/SideBar/Open.tid | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/storyviews/classic.js b/core/modules/storyviews/classic.js index 302449d2b..1486f3b29 100644 --- a/core/modules/storyviews/classic.js +++ b/core/modules/storyviews/classic.js @@ -27,7 +27,7 @@ ClassicStoryView.prototype.navigateTo = function(historyInfo) { var listItemWidget = this.listWidget.children[listElementIndex], targetElement = listItemWidget.findFirstDomNode(); // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!targetElement || targetElement.nodeType === Node.TEXT_NODE || listItemWidget.getVariable("tv-inherit-storyview-scroll") === "yes") { + if(!targetElement || targetElement.nodeType === Node.TEXT_NODE || listItemWidget.getVariable("tv-disable-storyview-scroll") === "yes") { return; } // Scroll the node into view diff --git a/core/modules/storyviews/pop.js b/core/modules/storyviews/pop.js index 06d833652..0c6ce3cd4 100644 --- a/core/modules/storyviews/pop.js +++ b/core/modules/storyviews/pop.js @@ -24,7 +24,7 @@ PopStoryView.prototype.navigateTo = function(historyInfo) { var listItemWidget = this.listWidget.children[listElementIndex], targetElement = listItemWidget.findFirstDomNode(); // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!targetElement || targetElement.nodeType === Node.TEXT_NODE || listItemWidget.getVariable("tv-inherit-storyview-scroll") === "yes") { + if(!targetElement || targetElement.nodeType === Node.TEXT_NODE || listItemWidget.getVariable("tv-disable-storyview-scroll") === "yes") { return; } // Scroll the node into view diff --git a/core/modules/storyviews/zoomin.js b/core/modules/storyviews/zoomin.js index 2bfc9aed3..b5d252f3f 100644 --- a/core/modules/storyviews/zoomin.js +++ b/core/modules/storyviews/zoomin.js @@ -52,7 +52,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) { var listItemWidget = this.listWidget.children[listElementIndex], targetElement = listItemWidget.findFirstDomNode(); // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!targetElement || listItemWidget.getVariable("tv-inherit-storyview-scroll") === "yes") { + if(!targetElement || listItemWidget.getVariable("tv-disable-storyview-scroll") === "yes") { return; } else if (targetElement.nodeType === Node.TEXT_NODE) { this.logTextNodeRoot(targetElement); diff --git a/core/ui/SideBar/Open.tid b/core/ui/SideBar/Open.tid index 97bb21bdf..29623e7e3 100644 --- a/core/ui/SideBar/Open.tid +++ b/core/ui/SideBar/Open.tid @@ -23,7 +23,7 @@ $button$ \end -<$set name="tv-inherit-storyview-scroll" value="yes"> +<$set name="tv-disable-storyview-scroll" value="yes">
<$list filter="[list]" history=<> storyview="pop">