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">