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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jul 20 13:08:34 EDT 2006


Author: trs
Date: Thu Jul 20 13:08:32 2006
New Revision: 1625

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

Log:
 r14590 at zot:  tom | 2006-07-20 13:08:09 -0400
 Don't fade autocomplete in and out, just show and hide 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	Thu Jul 20 13:08:32 2006
@@ -847,10 +847,24 @@
         minChars: "0",
         beforeShow: this.beforeShow,
         beforeHide: this.beforeHide,
-        frequency: 0.1
+        frequency: 0.1,
+        onShow: this.onShow,
+        onHide: this.onHide
     });
   },
 
+  onShow: function(element, update) {
+      if(!update.style.position || update.style.position=='absolute') {
+        update.style.position = 'absolute';
+        Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight});
+      }
+      Element.show( update );
+  },
+
+  onHide: function(element, update) {
+      Element.hide( update );
+  },
+
   beforeShow: function(obj) {
     /* Prevents the race for canonicalization and updating
        via autocomplete */


More information about the Jifty-commit mailing list