[reledit] do not reload on the parent node
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 08 Oct 2010 16:11:37 +0200
changeset 6422 c07c42a81075
parent 6421 32a6b11c4013
child 6423 c560f8d9faee
[reledit] do not reload on the parent node
web/data/cubicweb.reledit.js
--- a/web/data/cubicweb.reledit.js	Fri Oct 08 16:11:23 2010 +0200
+++ b/web/data/cubicweb.reledit.js	Fri Oct 08 16:11:37 2010 +0200
@@ -52,7 +52,7 @@
                 return;
             }
         }
-        jQuery('#'+params.divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, params, 'post');
+        jQuery('#'+params.divid+'-reledit').loadxhtml(JSON_BASE_URL, params, 'post');
         jQuery(cw).trigger('reledit-reloaded', params);
     },
 
@@ -68,7 +68,7 @@
                     pageid: pageid,
                     eid: eid, divid: divid, formid: formid,
                     reload: reload, vid: vid};
-        var d = jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post');
+        var d = jQuery('#'+divid+'-reledit').loadxhtml(JSON_BASE_URL, args, 'post');
         d.addCallback(function () {cw.reledit.showInlineEditionForm(divid);});
     }
 });