[Jifty-commit] r5625 - in jifty/trunk: share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Thu Jul 31 17:40:26 EDT 2008
Author: trs
Date: Thu Jul 31 17:40:25 2008
New Revision: 5625
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/jifty.js
Log:
r38357 at zot: tom | 2008-07-31 17:39:32 -0400
Let developers disable our default enter handling in case they want to do their own handling
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 31 17:40:25 2008
@@ -760,7 +760,8 @@
fields
*/
if ( !jQuery(e).hasClass("jifty_enter_handler_attached" )
- && !jQuery(e).hasClass("ajaxautocompletes" ) )
+ && !jQuery(e).hasClass("ajaxautocompletes" )
+ && !jQuery(e).hasClass("disable_enter_handler") )
{
/* Do not use keydown as the event, it will not work as expected in Safari */
jQuery(e).bind('keypress', Jifty.Form.Element.handleEnter).addClass("jifty_enter_handler_attached");
More information about the Jifty-commit
mailing list