[Bps-public-commit] rt-extension-formtools branch, enabled-by, updated. 0.07_03-2-g6bd1dd1
Ruslan Zakirov
ruz at bestpractical.com
Sun May 1 14:40:02 EDT 2011
The branch, enabled-by has been updated
via 6bd1dd1b33eacec750c2f80335afaf5d32d09b70 (commit)
from 52ceb222f983bf9885a75231cdd0bc99b4d1c15a (commit)
Summary of changes:
html/NoAuth/js/form_tools.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 6bd1dd1b33eacec750c2f80335afaf5d32d09b70
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Sun May 1 22:36:53 2011 +0400
attr('checked') === undefined doesn't work
diff --git a/html/NoAuth/js/form_tools.js b/html/NoAuth/js/form_tools.js
index 92b826a..b10c57a 100644
--- a/html/NoAuth/js/form_tools.js
+++ b/html/NoAuth/js/form_tools.js
@@ -16,7 +16,7 @@ function should_disable_form_field( fields, values ) {
var active = jQuery('input:enabled[name="'+ field +'"], input:enabled[name="'+ field +'s"]').filter(function() {
var value = this.value;
if ( this.type == 'radio' || this.type == 'checkbox' ) {
- if ( jQuery(this).attr('checked') === undefined ) return 0;
+ if ( !jQuery(this).is(':checked') ) return 0;
}
for ( var i = 0; i < values[field].length; i++ ) {
if ( value == values[field][i] ) { return 1 }
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list