author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Mon, 01 Mar 2010 16:02:22 +0100 | |
branch | stable |
changeset 4738 | 6cca4f602486 |
parent 4736 | b7749ae9572f |
child 4739 | 64806b0f7431 |
--- 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,