Create account dialog - domain autoComplete - change it from case-sensitive to not case-sensitive.

This commit is contained in:
Jessica Wang 2011-02-24 11:37:05 -08:00
parent a6ac728761
commit 88447a8aa2
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ function bindAddAccountButton() {
if(domainName != null && domainName.length > 0) {
if(autoCompleteItems != null && autoCompleteItems.length > 0) {
for(var i=0; i < autoCompleteItems.length; i++) {
if(fromdb(autoCompleteItems[i].name) == domainName) {
if(fromdb(autoCompleteItems[i].name).toLowerCase() == domainName.toLowerCase()) {
domainId = autoCompleteItems[i].id;
break;
}

View File

@ -43,7 +43,7 @@ function vmGetSearchParams() {
var domainId;
if(autoCompleteItems != null && autoCompleteItems.length > 0) {
for(var i=0; i < autoCompleteItems.length; i++) {
if(fromdb(autoCompleteItems[i].name) == domainName) {
if(fromdb(autoCompleteItems[i].name).toLowerCase() == domainName.toLowerCase()) {
domainId = autoCompleteItems[i].id;
break;
}