[Zope3-checkins] SVN: Zope3/trunk/src/zope/formlib/pageform.pt Make JS help code ever-so-slightly more robust.

Gary Poster gary at zope.com
Tue Dec 6 13:53:02 EST 2005


Log message for revision 40608:
  Make JS help code ever-so-slightly more robust.
  
  

Changed:
  U   Zope3/trunk/src/zope/formlib/pageform.pt

-=-
Modified: Zope3/trunk/src/zope/formlib/pageform.pt
===================================================================
--- Zope3/trunk/src/zope/formlib/pageform.pt	2005-12-06 16:36:02 UTC (rev 40607)
+++ Zope3/trunk/src/zope/formlib/pageform.pt	2005-12-06 18:53:02 UTC (rev 40608)
@@ -30,7 +30,7 @@
         e.style.visibility = viz;
       }
     }
-    var help = document.getElementById("field-help-for-" + field.name);
+    var help = document.getElementById("field-help-for-" + ob.htmlFor);
     if (help) {
       help.style.visibility = state && 'visible' || 'hidden';
     }



More information about the Zope3-Checkins mailing list