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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Dec 26 17:38:28 EST 2007


Author: sartak
Date: Wed Dec 26 17:38:28 2007
New Revision: 4773

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

Log:
 r49456 at onn:  sartak | 2007-12-26 17:36:28 -0500
 A prototype.js fix for IE6 throwing object errors on Hiveminder task creation


Modified: jifty/trunk/share/web/static/js/prototype.js
==============================================================================
--- jifty/trunk/share/web/static/js/prototype.js	(original)
+++ jifty/trunk/share/web/static/js/prototype.js	Wed Dec 26 17:38:28 2007
@@ -2210,7 +2210,11 @@
         if (position == 'top' || position == 'after') fragments.reverse();
         fragments.each(pos.insert.curry(element));
       }
-      else element.insertAdjacentHTML(pos.adjacency, content.stripScripts());
+      // Sartak: pos.adjacency may be undefined. IE6 gets very unhappy if you
+      // try to pass undef to insertAdjacentHTML
+      else if (pos.adjacency) {
+          element.insertAdjacentHTML(pos.adjacency, content.stripScripts());
+      }
 
       content.evalScripts.bind(content).defer();
     }


More information about the Jifty-commit mailing list