[Jifty-commit] r5816 - in jifty/trunk: share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Tue Sep 9 01:38:32 EDT 2008


Author: gugod
Date: Tue Sep  9 01:38:30 2008
New Revision: 5816

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/share/web/static/js/jifty.js

Log:
 r9347 at yra:  gugod | 2008-09-09 13:37:57 +0800
 jQuery.fn.hide failed to hide an element if any parents of that
 element is already invisible. This may be a correct behaviour but
 it'll be wrong if we have a div that's hidden in the beginning and
 displayed latter, and there are form messages in it.
 
 


Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js	(original)
+++ jifty/trunk/share/web/static/js/jifty.js	Tue Sep  9 01:38:30 2008
@@ -771,7 +771,9 @@
         }
     },
     '.form_field .error, .form_field .warning, .form_field .canonicalization_note': function(e) {
-        if ( e.innerHTML == "" ) jQuery(e).hide();
+        if ( e.innerHTML == "" ) {
+            e.style.display = "none";
+        }
     },
     // Form elements should focus if the CSS says so.
     ".focus": function(e) {


More information about the Jifty-commit mailing list