From aeca7a881260cf4fc9f9f4a0a8e68e6d8684f308 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Thu, 7 Mar 2013 11:56:35 -0400 Subject: [PATCH] t push origin BUG-10946BUG 10946 Despues de ingresar mas de 7 case notes despliega error SOLVED - Cuando se agrega mas de 7 case notes seguidos despliega un mensaje de error, en el mismo se presiona "Ok", pero despues de unos segundos vuelve a aprecer el mismo mensaje de error. Es necesario cerrar la ventana del Case Note para seguir ingresando mas notas al caso y ademas poder ver todas las notas ingresadas. - Disabled new notes when sent a new mail. --- workflow/engine/templates/app/main.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/workflow/engine/templates/app/main.js b/workflow/engine/templates/app/main.js index a546db099..6ff3f006e 100644 --- a/workflow/engine/templates/app/main.js +++ b/workflow/engine/templates/app/main.js @@ -331,6 +331,9 @@ function sendNote() Ext.getCmp('caseNoteText').focus(); Ext.getCmp('caseNoteText').reset(); + Ext.getCmp('caseNoteText').setDisabled(true); + Ext.getCmp('sendBtn').setDisabled(true); + Ext.getCmp('addCancelBtn').setDisabled(true); statusBarMessage( _('ID_CASES_NOTE_POSTING'), true); Ext.Ajax.request({ url : '../appProxy/postNote' , @@ -342,10 +345,16 @@ function sendNote() success: function ( result, request ) { var data = Ext.util.JSON.decode(result.responseText); if(data.success=="success"){ + Ext.getCmp('caseNoteText').setDisabled(false); + Ext.getCmp('sendBtn').setDisabled(false); + Ext.getCmp('addCancelBtn').setDisabled(false); statusBarMessage( _('ID_CASES_NOTE_POST_SUCCESS'), false,true); storeNotes.load(); } - else{ + else { + Ext.getCmp('caseNoteText').setDisabled(false); + Ext.getCmp('sendBtn').setDisabled(false); + Ext.getCmp('addCancelBtn').setDisabled(false); statusBarMessage( _('ID_CASES_NOTE_POST_ERROR'), false,false); Ext.MessageBox.alert(_('ID_CASES_NOTE_POST_ERROR'), data.message);