[js] jqNode is more robust here wrt some node ids stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 13 Sep 2010 13:56:09 +0200
branchstable
changeset 6220 e23231d482fb
parent 6219 803c1019138e
child 6221 a5cc5dc15f9d
[js] jqNode is more robust here wrt some node ids
web/data/cubicweb.htmlhelpers.js
--- a/web/data/cubicweb.htmlhelpers.js	Mon Sep 13 13:55:37 2010 +0200
+++ b/web/data/cubicweb.htmlhelpers.js	Mon Sep 13 13:56:09 2010 +0200
@@ -88,7 +88,7 @@
  * toggle visibility of an element by its id
  */
 function toggleVisibility(elemId) {
-    $('#' + elemId).toggleClass('hidden');
+    cw.jqNode(elemId).toggleClass('hidden');
 }
 
 /**