[Jifty-commit] r1313 - in jifty: trunk/share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Jun 18 15:32:12 EDT 2006
Author: nelhage
Date: Sun Jun 18 15:32:11 2006
New Revision: 1313
Modified:
jifty/ (props changed)
jifty/trunk/share/web/static/js/jifty.js
Log:
r12711 at phanatique: nelhage | 2006-06-16 12:55:47 -0400
Explicity selecting for validated inputs and textareas for performance
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 Sun Jun 18 15:32:11 2006
@@ -352,10 +352,11 @@
// Form elements should AJAX validate if the CSS says so
Behaviour.register({
- '.ajaxvalidation': function(elt) {
+ 'input.ajaxvalidation, textarea.ajaxvalidation': function(elt) {
elt.onblur = function () {
Form.Element.validate(this);
- }
+ }
+ elt = null; //Prevent IE from leaking memory
},
'input.date': function(e) {
if ( !Element.hasClassName( e, 'has_calendar_link' ) ) {
More information about the Jifty-commit
mailing list