Mailing List Archive

[interchange] Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated
commit 22a3c7fa9812c1af4e9d189a494643ac1ea8daa6
Author: Greg Hanson <greg@perusion.com>
Date: Wed Oct 12 20:47:18 2011 -0400

Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated via jquery

code/Widget/country_select.widget | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/code/Widget/country_select.widget b/code/Widget/country_select.widget
index f2a7518..8d21b3c 100644
--- a/code/Widget/country_select.widget
+++ b/code/Widget/country_select.widget
@@ -223,14 +223,14 @@ EOF
var svary = $v_state_vary\[country];
if(! svary) {
var val = '';
- sbox.innerHTML = '<input type="text" size="$size" name="$svar_in" value="' + sval + '" onChange="$v_formv.$svar.value = this.value"$extra>';
+ sbox.innerHTML = '<input type="text" size="$size" name="$svar_in" id="$svar_in" value="' + sval + '" onChange="$v_formv.$svar.value = this.value"$extra>';
$v_formv.$svar.value=sval;

return;
}
var stary = $v_state_tary\[country];

- var str = '<select name="$svar_in" onChange="$v_formv.$svar.value = this.value$state_js"$extra>';
+ var str = '<select name="$svar_in" id="$svar_in" onChange="$v_formv.$svar.value = this.value$state_js"$extra>';
for(var i = 0; i < svary.length; i++) {
str += '<option value="' + svary[i] + '"';
if(svary[i] == sval)

_______________________________________________
interchange-cvs mailing list
interchange-cvs@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs