fix open/close/open subnode bug #730709 stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 01 Mar 2010 16:02:22 +0100
branchstable
changeset 4738 6cca4f602486
parent 4736 b7749ae9572f
child 4739 64806b0f7431
fix open/close/open subnode bug #730709
web/data/cubicweb.widgets.js
--- a/web/data/cubicweb.widgets.js	Fri Feb 26 17:38:12 2010 +0100
+++ b/web/data/cubicweb.widgets.js	Mon Mar 01 16:02:22 2010 +0100
@@ -170,8 +170,8 @@
 function toggleTree(event) {
     var linode = jQuery(this);
     var url = linode.attr('cubicweb:loadurl');
-    linode.find('ul.placeholder').remove();
     if (url) {
+        linode.find('ul.placeholder').remove();
 	linode.loadxhtml(url, {callback: function(domnode) {
 	    linode.removeAttr('cubicweb:loadurl');
 	    jQuery(domnode).treeview({toggle: toggleTree,