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
This commit is contained in:
@@ -42,7 +42,20 @@ Ext.onReady(function(){
|
|||||||
regex: /^\w+$/,
|
regex: /^\w+$/,
|
||||||
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,
|
||||||
|
listeners: {
|
||||||
|
change: {
|
||||||
|
fn: function(){
|
||||||
|
valueField=this.setValue(this.getValue());
|
||||||
|
if(typeof valueField.activeError!=='undefined'){
|
||||||
|
Ext.getCmp('_idTest').disable();
|
||||||
|
}else{
|
||||||
|
Ext.getCmp('_idTest').enable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/*{
|
/*{
|
||||||
id: 'AO_DB_RB',
|
id: 'AO_DB_RB',
|
||||||
@@ -133,6 +146,7 @@ Ext.onReady(function(){
|
|||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
id: '_idTest',
|
||||||
text: _('ID_TEST'),
|
text: _('ID_TEST'),
|
||||||
handler: TestSite
|
handler: TestSite
|
||||||
}
|
}
|
||||||
@@ -145,6 +159,7 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
function resetfields(){
|
function resetfields(){
|
||||||
formNewSite.getForm().reset();
|
formNewSite.getForm().reset();
|
||||||
|
Ext.getCmp('_idTest').enable();
|
||||||
}
|
}
|
||||||
function TestSite(){
|
function TestSite(){
|
||||||
formNewSite.getForm().submit({
|
formNewSite.getForm().submit({
|
||||||
|
|||||||
Reference in New Issue
Block a user