From: Leon T. <le...@ea...> - 2007-07-23 17:34:12
|
Author: leon Date: 2007-07-23 10:34:14 -0700 (Mon, 23 Jul 2007) New Revision: 3940 Modified: versions/1.0/trunk/hot-deploy/opentaps-common/webapp/js/opentaps.js Log: Fix bug where last state or province in list was missing (Yukon for Canada, Wyoming for US, etc.) Modified: versions/1.0/trunk/hot-deploy/opentaps-common/webapp/js/opentaps.js =================================================================== --- versions/1.0/trunk/hot-deploy/opentaps-common/webapp/js/opentaps.js 2007-07-23 17:17:12 UTC (rev 3939) +++ versions/1.0/trunk/hot-deploy/opentaps-common/webapp/js/opentaps.js 2007-07-23 17:34:14 UTC (rev 3940) @@ -186,5 +186,5 @@ } // by setting the length of the select option array, we can truncate it - stateElement.options.length = states.length; + stateElement.options.length = states.length + 1; } |