web/views/editforms.py
branchstable
changeset 3760 9d93faa0e6dc
parent 3756 725a2b005479
child 3761 2c3b72faf05d
--- a/web/views/editforms.py	Tue Oct 20 17:13:05 2009 +0200
+++ b/web/views/editforms.py	Tue Oct 20 18:13:36 2009 +0200
@@ -194,14 +194,15 @@
         """xxx-reledit div (class=field)
               +-xxx div (class="editableField")
               |   +-landing zone
-              +-value
+              +   +-value
               +-form-xxx div
         """
         w = self.w
         w(u'<div id="%s-reledit" class="field">' % form.event_args['divid'])
-        w(tags.div(lzone, klass='editableField', id=form.event_args['divid'],
-                   onclick=self._onclick % form.event_args))
+        w(u'<div id="%s" class="editableField" onclick="%s">%s' % (
+                form.event_args['divid'], xml_escape(self._onclick % form.event_args), lzone))
         w(value)
+        w(u'</div>')
         w(form.form_render(renderer=renderer))
         w(u'</div>')
 
@@ -256,7 +257,7 @@
     by checking uicfg configuration and composite relation property.
     """
     id = 'reledit'
-    _onclick = (u"loadInlineEditionForm(%(eid)s, '%(rtype)s', '%(role)s', '%(eid)s', "
+    _onclick = (u"loadInlineEditionForm(%(eid)s, '%(rtype)s', '%(role)s', "
                 "'%(divid)s', %(reload)s, '%(vid)s', '%(default)s', '%(lzone)s');")
 
     def should_edit_attribute(self, entity, rschema, role, _form):