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

Jifty commits jifty-commit at lists.jifty.org
Fri May 2 02:25:37 EDT 2008

Author: gugod
Date: Fri May  2 02:25:34 2008
New Revision: 5350


Fixes the issue that clicking on the items in autocompleteHelper does
not update the input field.

For some unknown reasons... binding 'click' handlers on LI can't work
well, but binding "mousedown" works pretty ok. Not sure if this is
Jifty-specific. But binding "mouseover" instead solves the issue.

Modified: jifty/trunk/share/web/static/js/iautocompleter.js
--- jifty/trunk/share/web/static/js/iautocompleter.js	(original)
+++ jifty/trunk/share/web/static/js/iautocompleter.js	Fri May  2 02:25:34 2008
@@ -147,7 +147,7 @@
 		jQuery.iAuto.items = jQuery('li', jQuery.iAuto.content.get(0));
-			.bind('click', jQuery.iAuto.clickItem);
+			.bind('mousedown', jQuery.iAuto.clickItem);
 		var position = jQuery.iUtil.getPosition(subject);
 		var size = jQuery.iUtil.getSize(subject);

More information about the Jifty-commit mailing list