[interchange-cvs] interchange - heins modified
code/Widget/country_select.widget
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Apr 11 12:35:27 EDT 2005
User: heins
Date: 2005-04-11 16:35:26 GMT
Modified: code/Widget country_select.widget
Log:
* Fix missing form variable in some situations where we need to go to
the forms array.
Revision Changes Path
1.3 +6 -0 interchange/code/Widget/country_select.widget
rev 1.3, prev_rev 1.2
Index: country_select.widget
===================================================================
RCS file: /var/cvs/interchange/code/Widget/country_select.widget,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- country_select.widget 11 Apr 2005 04:25:23 -0000 1.2
+++ country_select.widget 11 Apr 2005 16:35:26 -0000 1.3
@@ -178,11 +178,17 @@
function ${cvar}_widget_adjust_state (cel,sval) {
var sbox = document.getElementById('$sel');
var country = cel.value;
+
+ if(! formv) {
+ formv=cel.form;
+ }
+
if(! sval) {
if(formv.$svar && formv.$svar.value)
sval = formv.$svar.value;
else sval = '';
}
+
if(! sbox) return;
if(no_state[country]) {
sbox.innerHTML = '<span style="$opt->{state_style}">No state required</span>';
More information about the interchange-cvs
mailing list