Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: cvs

[interchange] Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated

 

 

Interchange cvs RSS feed   Index | Next | Previous | View Threaded


interchange-cvs at icdevgroup

Oct 12, 2011, 6:00 PM

Post #1 of 1 (246 views)
Permalink
[interchange] Added ID attribute to "pseudo" state dropdown so both actual state value and display can be updated

commit 22a3c7fa9812c1af4e9d189a494643ac1ea8daa6
Author: Greg Hanson <greg [at] perusion>
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 [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs

Interchange cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.