[Laszlo-checkins] r10039 - openlaszlo/trunk/demos/amazon
pbr@openlaszlo.org
pbr at openlaszlo.org
Thu Jun 26 14:26:05 PDT 2008
Author: pbr
Date: 2008-06-26 14:26:03 -0700 (Thu, 26 Jun 2008)
New Revision: 10039
Modified:
openlaszlo/trunk/demos/amazon/address.lzx
Log:
Change 20080624-Philip-4 by Philip at Philip-DC on 2008-06-24 16:07:14 EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: FF2/DHTML: Make address form invisible when editing is finished
New Features:
Bugs Fixed: LPP-6517
Technical Reviewer: josh
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
The edit-address feature in amazon works by setting the height of the form to 0 as a means to disable it. This doesn't disable the edittext components. I added a show() method to the object that handles address editing. This continues to set the height to/from 0, but also adjusts the visible state.
Tests:
go to amazon checkout in dhtml. Edit or create a new address. Click on one of the edit fields so that the cursor is displayed. When you cancel or ok, the cursor disappears.
Files:
M demos/amazon/address.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080624-Philip-4.tar
Modified: openlaszlo/trunk/demos/amazon/address.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/address.lzx 2008-06-26 20:49:07 UTC (rev 10038)
+++ openlaszlo/trunk/demos/amazon/address.lzx 2008-06-26 21:26:03 UTC (rev 10039)
@@ -7,17 +7,22 @@
parent.form.form.setDatapath("new:/address");
parent.form.setAttribute("mode", "new");
this.setAttribute("height", 0);
- parent.form.setAttribute("height", parent.height);
+ parent.form.show();
</method>
<method name="editAddress" args="clonenbr">
parent.form.setAttribute("mode", "edit");
this.setAttribute("height", 0);
- parent.form.setAttribute("height", parent.height);
parent.form.form.setDatapath("dsAddressList:/addresslist/address["+(clonenbr+1)+"]");
+ parent.form.show();
</method>
</addresslist>
<addressform name="form" width="${parent.width}" height="0">
+ <method name="show">
+ this.setAttribute("visible", true);
+ this.setAttribute("height", parent.height);
+ </method>
<method name="done">
+ this.setAttribute("visible", false);
this.setAttribute("height", 0);
parent.list.setAttribute("height", parent.height);
</method>
More information about the Laszlo-checkins
mailing list