[reledit] looks better on the left
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 17 Jul 2009 19:48:04 +0200
changeset 2390 c0d09a4ca3dc
parent 2389 c399bd6a9c38
child 2391 59a2def75e93
[reledit] looks better on the left
web/data/cubicweb.widgets.js
web/views/editforms.py
--- a/web/data/cubicweb.widgets.js	Fri Jul 17 16:50:50 2009 +0200
+++ b/web/data/cubicweb.widgets.js	Fri Jul 17 19:48:04 2009 +0200
@@ -184,8 +184,7 @@
 Widgets.TreeView = defclass("TreeView", null, {
     __init__: function(wdgnode) {
 	jQuery(wdgnode).treeview({toggle: toggleTree,
-				  prerendered: true
-				 });
+				  prerendered: true});
     }
 });
 
--- a/web/views/editforms.py	Fri Jul 17 16:50:50 2009 +0200
+++ b/web/views/editforms.py	Fri Jul 17 19:48:04 2009 +0200
@@ -183,9 +183,10 @@
                                                             onclick=cancelclick)])
         field = guess_field(entity.e_schema, entity.schema.rschema(rtype), role)
         form.append_field(field)
-        self.w(u'<div id="%s-reledit" class="field">%s&nbsp;' % (divid, value))
+        self.w(u'<div id="%s-reledit" class="field">' % divid)
         self.w(tags.div(lzone, klass='editableField', id=divid,
                         onclick=self._onclick % event_data))
+        self.w(value)
         renderer = self._build_renderer(entity, rtype, role)
         self.w(form.form_render(renderer=renderer))
         self.w(u'</div>')