call getWebguiProperty('extrasURL')
This commit is contained in:
parent
c03bcc385c
commit
240eb10ec5
1 changed files with 6 additions and 4 deletions
|
|
@ -38,7 +38,8 @@ WebGUI.FieldCheck.prototype.initialize = function() {
|
||||||
if (required && !input) {
|
if (required && !input) {
|
||||||
var imgEltId=fieldId+"_Img";
|
var imgEltId=fieldId+"_Img";
|
||||||
var imgElt=document.getElementById(imgEltId);
|
var imgElt=document.getElementById(imgEltId);
|
||||||
imgElt.setAttribute('src','/extras/form/cross.png');
|
var extras = getWebguiProperty("extrasURL");
|
||||||
|
imgElt.setAttribute('src',extras+'/form/cross.png');
|
||||||
alert(this.i18n('field required'));
|
alert(this.i18n('field required'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -51,6 +52,7 @@ WebGUI.FieldCheck.AjaxEvent = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
WebGUI.FieldCheck.AjaxEvent.prototype = {
|
WebGUI.FieldCheck.AjaxEvent.prototype = {
|
||||||
|
extras: getWebguiProperty("extrasURL"),
|
||||||
startThrobber: function(fieldId) {
|
startThrobber: function(fieldId) {
|
||||||
this.field = document.getElementById(fieldId);
|
this.field = document.getElementById(fieldId);
|
||||||
var imgEltId=fieldId+"_Img";
|
var imgEltId=fieldId+"_Img";
|
||||||
|
|
@ -63,7 +65,7 @@ WebGUI.FieldCheck.AjaxEvent.prototype = {
|
||||||
}else{
|
}else{
|
||||||
var imgElt=document.getElementById(imgEltId);
|
var imgElt=document.getElementById(imgEltId);
|
||||||
}
|
}
|
||||||
imgElt.setAttribute('src','/extras/form/throbber.gif');
|
imgElt.setAttribute('src',this.extras+'/form/throbber.gif');
|
||||||
},
|
},
|
||||||
connect: function(fieldId,sUri) {
|
connect: function(fieldId,sUri) {
|
||||||
if (!sUri && !this.sUri) {
|
if (!sUri && !this.sUri) {
|
||||||
|
|
@ -77,9 +79,9 @@ WebGUI.FieldCheck.AjaxEvent.prototype = {
|
||||||
var imgElt=document.getElementById(imgEltId);
|
var imgElt=document.getElementById(imgEltId);
|
||||||
document.getElementById(imgEltId);
|
document.getElementById(imgEltId);
|
||||||
if(oJSON.error == ""){
|
if(oJSON.error == ""){
|
||||||
imgElt.setAttribute('src','/extras/form/tick.png');
|
imgElt.setAttribute('src',this.extras+'/form/tick.png');
|
||||||
}else{
|
}else{
|
||||||
imgElt.setAttribute('src','/extras/form/cross.png');
|
imgElt.setAttribute('src',this.extras+'/form/cross.png');
|
||||||
alert(oJSON.error);
|
alert(oJSON.error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue