use the FormHelper instead of the Auth system for the Ajax check

on Username
This commit is contained in:
Luke Robinson 2010-03-08 08:58:17 +00:00 committed by Doug Bell
parent c61e7454d0
commit c03bcc385c
3 changed files with 12 additions and 24 deletions

View file

@ -30,7 +30,6 @@ WebGUI.FieldCheck.prototype.initialize = function() {
var fieldType=this.fieldType;
var required=this.required;
var field=document.getElementById(fieldId);
var fieldName=field.name;
var input=field.value;
var myAjaxEvent = new WebGUI.FieldCheck.AjaxEvent();
@ -44,7 +43,7 @@ WebGUI.FieldCheck.prototype.initialize = function() {
return false;
}
myAjaxEvent.connect(fieldId,'/?op=auth;method=checkField;fieldName='+fieldName+';fieldType='+fieldType+';input='+input);
myAjaxEvent.connect(fieldId,'/?op=formHelper;sub=check;class='+fieldType+';input='+input);
}
WebGUI.FieldCheck.AjaxEvent = function() {