[Bps-public-commit] rt-extension-formtools branch, hidden-fields, updated. 0.07_03-7-g315cc43
Ruslan Zakirov
ruz at bestpractical.com
Tue May 10 15:01:47 EDT 2011
The branch, hidden-fields has been updated
via 315cc43404e39580c4b77d19cde517e798b7b620 (commit)
from aff1544b44e6b722b5e04e94e747e03e4c3bed4d (commit)
Summary of changes:
html/NoAuth/js/form_tools.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 315cc43404e39580c4b77d19cde517e798b7b620
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Tue May 10 23:01:16 2011 +0400
properly retireve current values from hidden inputs
diff --git a/html/NoAuth/js/form_tools.js b/html/NoAuth/js/form_tools.js
index 79a264f..5eb8106 100644
--- a/html/NoAuth/js/form_tools.js
+++ b/html/NoAuth/js/form_tools.js
@@ -25,6 +25,8 @@ function should_disable_form_field( fields, values ) {
} else if ( this.type == 'radio' || this.type == 'checkbox' ) {
if ( !jQuery(this).is(':checked') ) return 0;
value = this.value;
+ } else if ( this.type == 'hidden' ) {
+ value = this.value;
}
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