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