Author: raju
Date: 2007-08-16 12:56:38 -0700 (Thu, 16 Aug 2007)
New Revision: 6092

Modified:
   labs/lzproject/trunk/lzx/lzproject/modules/People.lzx
Log:
Don't show delete and edit for default user laszlo.


Modified: labs/lzproject/trunk/lzx/lzproject/modules/People.lzx
===================================================================
--- labs/lzproject/trunk/lzx/lzproject/modules/People.lzx       2007-08-16 
19:46:01 UTC (rev 6091)
+++ labs/lzproject/trunk/lzx/lzproject/modules/People.lzx       2007-08-16 
19:56:38 UTC (rev 6092)
@@ -31,6 +31,13 @@
         <!-- PRIVATE ATTRIBUTE SECTION -->
 
         <!-- EVENT & HANDLER SECTION -->
+        <handler name="ondata">
+            if (this.login == 'laszlo') {
+                this.setAttribute('showControls', false);
+            } else {
+                this.setAtribute('showControls', true);
+            }
+        </handler>
 
         <!-- METHOD SECTION -->
         <!--- call the deleteUser service -->
@@ -59,7 +66,7 @@
         visible="${classroot.showControls}">
         <simplelayout axis="x" spacing="5" />
         <text fontsize="9" onclick="createUserForm.loadUser(classroot)" 
><u>Edit</u></text>
-        <text fontsize="9" onclick="classroot.deleteUser()" 
visible="${classroot.login != canvas.login}"><u>Delete</u></text>
+        <text fontsize="9" 
onclick="classroot.deleteUser()"><u>Delete</u></text>
       </view>
   </class>
 
@@ -69,4 +76,4 @@
 * Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.         *
 * Use is subject to license terms.                                       *
 * X_LZ_COPYRIGHT_END *****************************************************
--->
\ No newline at end of file
+-->


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to