mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
correctly name variables
This commit is contained in:
parent
8f30dee513
commit
547c9a2814
@ -27,7 +27,7 @@ ClassicStoryView.prototype.navigateTo = function(historyInfo) {
|
|||||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||||
targetElement = listItemWidget.findFirstDomNode();
|
targetElement = listItemWidget.findFirstDomNode();
|
||||||
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
// Scroll the node into view
|
// Scroll the node into view
|
||||||
|
@ -24,7 +24,7 @@ PopStoryView.prototype.navigateTo = function(historyInfo) {
|
|||||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||||
targetElement = listItemWidget.findFirstDomNode();
|
targetElement = listItemWidget.findFirstDomNode();
|
||||||
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
// Scroll the node into view
|
// Scroll the node into view
|
||||||
|
@ -52,7 +52,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) {
|
|||||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||||
targetElement = listItemWidget.findFirstDomNode();
|
targetElement = listItemWidget.findFirstDomNode();
|
||||||
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
// 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;
|
return;
|
||||||
} else if (targetElement.nodeType === Node.TEXT_NODE) {
|
} else if (targetElement.nodeType === Node.TEXT_NODE) {
|
||||||
this.logTextNodeRoot(targetElement);
|
this.logTextNodeRoot(targetElement);
|
||||||
|
@ -23,7 +23,7 @@ $button$
|
|||||||
</$droppable>
|
</$droppable>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<$set name="tv-inherit-storyview-scroll" value="yes">
|
<$set name="tv-disable-storyview-scroll" value="yes">
|
||||||
<div class="tc-sidebar-tab-open">
|
<div class="tc-sidebar-tab-open">
|
||||||
<$list filter="[list<tv-story-list>]" history=<<tv-history-list>> storyview="pop">
|
<$list filter="[list<tv-story-list>]" history=<<tv-history-list>> storyview="pop">
|
||||||
<div class="tc-sidebar-tab-open-item">
|
<div class="tc-sidebar-tab-open-item">
|
||||||
|
Loading…
Reference in New Issue
Block a user