[Jifty-commit] r5315 - jifty/trunk/share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Wed Apr 16 16:41:52 EDT 2008


Author: gugod
Date: Wed Apr 16 16:41:51 2008
New Revision: 5315

Modified:
   jifty/trunk/share/web/static/js/jifty.js

Log:
This fixes an "Invalid Argument" exception on IE6/7. It appears that
the old statment may lose context of "this" on IE6/7.

Also , refetch the "element" object after insertion. This fixes a
position weirdness of consequtive append/prepent.


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	Wed Apr 16 16:41:51 2008
@@ -1030,7 +1030,8 @@
                         Top: 'prepend'
                     })[ f['mode'] ];
 
-                    (jQuery(element)[method])( textContent );
+                    jQuery.fn[method].call(jQuery(element), textContent);
+                    element = document.getElementById('region-' + f['region']);
                 } else {
                     jQuery(element).html( textContent );
                 }


More information about the Jifty-commit mailing list