Admin > Settings > Calendar > New: El campo "Name" se muestra en rojo al momento de ingresar a crear un nuevo calendario

Se cambio la validacion y se aumento un mensaje
This commit is contained in:
marcelo.cuiza
2015-04-27 11:11:33 -04:00
parent b30275a36d
commit efe58fcc5c

View File

@@ -750,8 +750,7 @@ Ext.onReady( function() {
xtype : 'textfield' ,
width : 200 ,
fieldLabel : _('ID_NAME') ,
name : 'name' ,
allowBlank : false
name : 'name'
},
{
id : 'dynaformCalendarDescription' ,
@@ -935,6 +934,9 @@ Ext.onReady( function() {
Ext.getCmp('dynaformCalendarName').setValue(Ext.getCmp('dynaformCalendarName').getValue().trim());
var canlendarName = Ext.getCmp('dynaformCalendarName').getValue().trim();
if(canlendarName === ""){
Ext.apply(Ext.getCmp('dynaformCalendarName'), {allowBlank: false}, {});
Ext.Msg.alert(_('ID_WARNING'), _("ID_FIELD_REQUIRED", _("ID_NAME")));
Ext.getCmp('dynaformCalendarName').setValue("");
return;
}
Ext.Ajax.request({