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

Jifty commits jifty-commit at lists.jifty.org
Wed Apr 16 20:22:57 EDT 2008


Author: sartak
Date: Wed Apr 16 20:22:55 2008
New Revision: 5317

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

Log:
 r54131 at onn:  sartak | 2008-04-16 20:15:48 -0400
 Remove some prototypisms from jifty_utils


Modified: jifty/trunk/share/web/static/js/jifty_utils.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty_utils.js	(original)
+++ jifty/trunk/share/web/static/js/jifty_utils.js	Wed Apr 16 20:22:55 2008
@@ -42,7 +42,7 @@
         while ( parent ) {
             if ( !parent.style ) break;
             
-            var pos = Element.getStyle( parent, "position" );
+            var pos = jQuery(parent).css("position");
             if ( pos == "relative" || pos == "absolute" ) {
                 parentx = Jifty.Utils.findPosX( parent );
                 break;
@@ -60,7 +60,7 @@
         while ( parent ) {
             if ( !parent.style ) break;
             
-            var pos = Element.getStyle( parent, "position" );
+            var pos = jQuery(parent).css("position");
             if ( pos == "relative" || pos == "absolute" ) {
                 parenty = Jifty.Utils.findPosY( parent );
                 break;


More information about the Jifty-commit mailing list