From 30a88a41e550207bd95ce2d3a073f8ddd4e4d087 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 10 Jul 2010 17:11:43 -0700 Subject: [PATCH] remove hidden country/state vars --- include/country.js | 30 ------------------------------ view/profile.php | 6 +++--- view/profile_edit.tpl | 3 --- wip/todo | 1 - 4 files changed, 3 insertions(+), 37 deletions(-) diff --git a/include/country.js b/include/country.js index 4482a3f8cb..701ec19e27 100644 --- a/include/country.js +++ b/include/country.js @@ -428,39 +428,9 @@ function Fill_Country(current) { return; } -function updSelectState(lngState) { - if (gLngSelectedCountry>0) { - - document.form1.txtSelectedState.value = lngState+1; - - } -} - -/* - * gArCountryInfo matrix holds the following information: - * (0) Country name - * (1) Name length - * (2) Number of states - * (3) Max state length - */ function Update_Globals() { gLngSelectedCountry=parseInt(document.form1.country_name.selectedIndex); gLngSelectedState=parseInt(document.form1.region.selectedIndex); - document.form1.txtSelectedCountry.value=gLngSelectedCountry; - document.form1.txtSelectedState.value=gLngSelectedState+1; - - // working -// document.form1.txtCountry.value= -// document.form1.country_name.options[gLngSelectedCountry].text; -// if (document.form1.txtSelectedState.value<=0) { -// document.form1.txtState.value=""; -// } -// else { -// document.form1.txtState.value= -// document.form1.region.options[gLngSelectedState].text; -// } - - return; } diff --git a/view/profile.php b/view/profile.php index 808e2dbaab..d1e53ad56d 100644 --- a/view/profile.php +++ b/view/profile.php @@ -29,11 +29,11 @@ || (strlen($profile['region'])) || (strlen($profile['postal-code'])) || (strlen($profile['country-name']))) { ?> -
Location: + Location:
-
-
+ +
diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index a19347cf94..789da873c2 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -58,8 +58,6 @@ $dob $age
- -