[views/reledit] ajax.js not there by default #1382713 stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 22 Dec 2010 18:28:52 +0100
branchstable
changeset 6754 ab6886d52788
parent 6753 2bbc1010494c
child 6755 799ae44925c4
[views/reledit] ajax.js not there by default #1382713
web/views/reledit.py
--- a/web/views/reledit.py	Wed Dec 22 14:40:35 2010 +0100
+++ b/web/views/reledit.py	Wed Dec 22 18:28:52 2010 +0100
@@ -78,7 +78,7 @@
         assert rtype
         assert role in ('subject', 'object'), '%s is not an acceptable role value' % role
         self._cw.add_css('cubicweb.form.css')
-        self._cw.add_js('cubicweb.reledit.js', 'cubicweb.edition.js')
+        self._cw.add_js('cubicweb.reledit.js', 'cubicweb.edition.js', 'cubicweb.ajax.js')
         entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema[rtype]
         self._rules = rctrl.etype_get(entity.e_schema.type, rschema.type, role, '*')