Merged in dheeyi/processmaker/PM-2447 (pull request #2007)

PM-2447 Admin>Settigns>Calendar: Cuando quieres crear un calendario con el nombre demasiado largo dice que creo correctamente pero no creo en realidad con su nombre completo.
This commit is contained in:
Julio Cesar Laura Avendaño
2015-04-30 10:59:16 -04:00

View File

@@ -750,7 +750,28 @@ Ext.onReady( function() {
xtype : 'textfield' , xtype : 'textfield' ,
width : 200 , width : 200 ,
fieldLabel : _('ID_NAME') , fieldLabel : _('ID_NAME') ,
name : 'name' name : 'name' ,
allowBlank : false,
msgTarget: 'side',
enableKeyEvents: true,
listeners: {
focus : function(textfield){
var element = document.getElementById('dynaformCalendarName');
element.setAttribute('maxlength','100');
element.onpaste = function (e){
var textValue = undefined;
if(window.clipboardData && window.clipboardData.getData) {
textValue = window.clipboardData.getData('Text');
}else if(e.clipboardData && e.clipboardData.getData) {
textValue = e.clipboardData.getData('text/plain');
}
if(textValue.length>99){
Ext.MessageBox.alert(_('ID_WARNING'), _("ID_PPP_MAXIMUM_LENGTH")+":100", function(){ return true;});
}
return true;
}
}
}
}, },
{ {
id : 'dynaformCalendarDescription' , id : 'dynaformCalendarDescription' ,