Author: pbr Date: 2007-06-29 07:31:17 -0700 (Fri, 29 Jun 2007) New Revision: 5553
Modified: openlaszlo/branches/legals/demos/amazon/amazon.lzx Log: Change 20070627-Philip-8 by [EMAIL PROTECTED] on 2007-06-27 13:35:19 EST in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/legals for http://svn.openlaszlo.org/openlaszlo/branches/legals Summary: Fix warnings in amazon app New Features: Bugs Fixed: LPP-4107 Technical Reviewer: jcrowley QA Reviewer: (pending) Doc Reviewer: (pending) Documentation: Release Notes: Details: - Removed reference to this.field as it isn't needed - Removed reference parent.clonenumber since this isn't available. I added an onclonenumber event handler to retrieve this information. At some point it looks like this number was used as the track id of the album. It is not used for disp lay but I kept the functionality anyway. Tests: amazon.app runs with warnings in dhtml and swf. Files: M demos/amazon/amazon.lzx Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070627-Philip-8.tar Modified: openlaszlo/branches/legals/demos/amazon/amazon.lzx =================================================================== --- openlaszlo/branches/legals/demos/amazon/amazon.lzx 2007-06-29 14:28:49 UTC (rev 5552) +++ openlaszlo/branches/legals/demos/amazon/amazon.lzx 2007-06-29 14:31:17 UTC (rev 5553) @@ -258,9 +258,13 @@ <simplelayout axis="y"/> <!-- Repeated view displaying the list of tracks --> <view width="${parent.width}"> + <attribute name="trackid" type="string" value=""/> + <method event="onclonenumber" args="n"> + this.trackid = n+1 + '.'; + </method> <datapath xpath="Track" pooling="true" /> <simplelayout axis="x" spacing="4"/> - <text label="${(parent.clonenumber+1)+'.'}" width="20"/> + <text name="tid" label="${parent.trackid}" width="20"/> <text datapath="text()" width="${parent.width}"/> </view> </view> @@ -325,8 +329,9 @@ <mouseview resource="search_butt" y="1" onclick="search()"> <inputtext name="searchKey" x="20" y="3" fontsize="11"> - <method event="onkeydown" reference="this.field" args="k"> + <method event="onkeydown" args="k"> if (k==13) { +Debug.write("Searching"); parent.search(); } </method> _______________________________________________ Laszlo-checkins mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
