PM-1640 Workspace creation field accpets everything including mysql restricted characters like %$

Causa : No se tenia validacion en este field input.
Solucion : Se adiciona una validacion en funcion a una expresion regular(Regex).
This commit is contained in:
dheeyi
2015-04-06 11:26:51 -04:00
parent 3d45f95458
commit b35a0ef489

View File

@@ -43,19 +43,15 @@ Ext.onReady(function(){
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'},
allowBlank: false,
msgTarget: 'under',
monitorValid: true,
listeners: {
change: {
fn: function(){
valueField=this.setValue(this.getValue());
if(typeof valueField.activeError!=='undefined'){
Ext.getCmp('_idTest').disable();
}else{
Ext.getCmp('_idTest').enable();
}
}
}
}
validator: function(v) {
var valueInputField= /^\w+$/.test(v)?true:"Invalid Workflow Database";
if (valueInputField==true) {
Ext.getCmp('_idTest').enable();
}else{
Ext.getCmp('_idTest').disable();
}
return valueInputField;
}
},
/*{
id: 'AO_DB_RB',