changeset 881:82e82774e0d7 jquery

testing with jQuery 1.5.1, porting my offset bugfix
author hertzhaft
date Thu, 17 Mar 2011 21:06:54 +0100
parents ca6b8c970ea1
children 07926f0b9a1a 40ee7247da17
files client/digitallibrary/jquery/jquery-1.5.1.js client/digitallibrary/jquery/jquery-test-embedded.html client/digitallibrary/jquery/jquery-test-full.html
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery-1.5.1.js	Thu Mar 17 20:25:56 2011 +0100
+++ b/client/digitallibrary/jquery/jquery-1.5.1.js	Thu Mar 17 21:06:54 2011 +0100
@@ -8131,8 +8131,8 @@
 			curPosition = curElem.position();
 		}
 
-		curTop  = calculatePosition ? curPosition.top  : parseInt( curCSSTop,  10 ) || 0;
-		curLeft = calculatePosition ? curPosition.left : parseInt( curCSSLeft, 10 ) || 0;
+		curTop  = calculatePosition ? curPosition.top  : parseFloat( curCSSTop,  10 ) || 0;
+		curLeft = calculatePosition ? curPosition.left : parseFloat( curCSSLeft, 10 ) || 0;
 
 		if ( jQuery.isFunction( options ) ) {
 			options = options.call( elem, i, curOffset );
--- a/client/digitallibrary/jquery/jquery-test-embedded.html	Thu Mar 17 20:25:56 2011 +0100
+++ b/client/digitallibrary/jquery/jquery-test-embedded.html	Thu Mar 17 21:06:54 2011 +0100
@@ -51,7 +51,7 @@
 
         </style>
 
-        <script type="text/javascript" src="jquery-1.4.4.js"></script>
+        <script type="text/javascript" src="jquery-1.5.1.js"></script>
         <script type="text/javascript" src="jquery.cookie.js"></script>
         <script type="text/javascript" src="jquery.digilib.js"></script>
         <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
--- a/client/digitallibrary/jquery/jquery-test-full.html	Thu Mar 17 20:25:56 2011 +0100
+++ b/client/digitallibrary/jquery/jquery-test-full.html	Thu Mar 17 21:06:54 2011 +0100
@@ -55,7 +55,7 @@
                 }
         </style>
 
-        <script type="text/javascript" src="jquery-1.4.4.js"></script>
+        <script type="text/javascript" src="jquery-1.5.1.js"></script>
         <script type="text/javascript" src="jquery.cookie.js"></script>
         <script type="text/javascript" src="jquery.digilib.js"></script>
         <script type="text/javascript" src="jquery.digilib.geometry.js"></script>