bug: you can create a triggers with spaces after a before the name, this bug was fixed, we are removing the spaces after and before the string
This commit is contained in:
@@ -103,7 +103,10 @@
|
|||||||
@#PAGED_TABLE_ID.refresh();
|
@#PAGED_TABLE_ID.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//with this function, we are removing the spaces after and before of a string
|
||||||
|
String.prototype.trim = function() {
|
||||||
|
return this.replace(/^\s+|\s+$/g, "");
|
||||||
|
};
|
||||||
//for trigger no wizard
|
//for trigger no wizard
|
||||||
function triggerSave1(form)
|
function triggerSave1(form)
|
||||||
{
|
{
|
||||||
@@ -112,7 +115,7 @@
|
|||||||
var triUid = getField('TRI_UID').value;
|
var triUid = getField('TRI_UID').value;
|
||||||
}
|
}
|
||||||
if(triUid==''){
|
if(triUid==''){
|
||||||
var triTitle =getField('TRI_TITLE').value;
|
var triTitle =getField('TRI_TITLE').value.trim();
|
||||||
if(triTitle==''){
|
if(triTitle==''){
|
||||||
alert(G_STRINGS.ID_REQUIRED_NAME_TRIGGERS);return false;
|
alert(G_STRINGS.ID_REQUIRED_NAME_TRIGGERS);return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user