[Laszlo-checkins] r12645 - openlaszlo/trunk/docs/src/nav
bargull@openlaszlo.org
bargull at openlaszlo.org
Sun Jan 25 09:28:22 PST 2009
Author: bargull
Date: 2009-01-25 09:28:20 -0800 (Sun, 25 Jan 2009)
New Revision: 12645
Modified:
openlaszlo/trunk/docs/src/nav/nav.lzx
Log:
Change 20090125-bargull-Kw2 by bargull at dell--p4--2-53 on 2009-01-25 18:24:01
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix link in ref-navigator
New Features:
Bugs Fixed: LPP-7680
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Add a "href" attribute and adjust the instances to work with that attribute.
(The onclick-handler defined in the class tried to access the datapath, but in one case the datapath wasn't defined)
Tests:
Modified: openlaszlo/trunk/docs/src/nav/nav.lzx
===================================================================
--- openlaszlo/trunk/docs/src/nav/nav.lzx 2009-01-25 17:27:54 UTC (rev 12644)
+++ openlaszlo/trunk/docs/src/nav/nav.lzx 2009-01-25 17:28:20 UTC (rev 12645)
@@ -9,10 +9,12 @@
<dataset name="classesdata" src="classes.xml"/>
<dataset name="tagsdata" src="tags.xml"/>
- <class name="link" extends="text" resize="true"
+ <class name="link" extends="text"
onmouseover="setAttribute('fgcolor', 'blue')"
onmouseout="setAttribute('fgcolor', 'black')"
- onclick="lz.Browser.loadURL(this.datapath.xpathQuery('@href'), canvas.target)"/>
+ onclick="lz.Browser.loadURL(this.href, canvas.target)">
+ <attribute name="href" value="" type="string"/>
+ </class>
<class name="wheelscrollbar" extends="scrollbar" mousewheelactive="true">
<handler name="onmousewheeldelta" reference="lz.Keys" method="mousewheelUpdate"/>
@@ -73,8 +75,7 @@
parent.treeparent.findNext( token.getText() );
</method>
</view>
- <link text="Welcome"
- onclick="lz.Browser.loadURL('ref.preface.html', canvas.target)"/>
+ <link text="Welcome" href="ref.preface.html"/>
<view name="treeparent" clip="true" width="${parent.width - 20}"
height="${Math.max(0,parent.parent.height - parent.search.height - 80)}">
<attribute name="lastCategory" value="0" type="number" />
@@ -161,7 +162,7 @@
<view clip="true" height="${parent.parent.height - 50}"
width="${parent.width-20}">
<view layout="axis:y" width="${parent.width - 20}">
- <link text="$path{'@title'}">
+ <link text="$path{'@title'}" href="$path{'@href'}">
<datapath xpath="classesdata:/index/item" replication="lazy"/>
</link>
</view>
@@ -173,7 +174,7 @@
<view clip="true" height="${parent.parent.height - 50}"
width="${parent.width-20}">
<view layout="axis:y" width="${parent.width - 20}">
- <link text="$path{'@title'}">
+ <link text="$path{'@title'}" href="$path{'@href'}">
<setter name="text" args="t" >
super.setAttribute("text", this.escapeText(t));
</setter>
More information about the Laszlo-checkins
mailing list