FBI-2476: Message History > when it is resend a second time, an error occurs by console and the main screen goes blank
This commit is contained in:
@@ -124,9 +124,8 @@
|
|||||||
|
|
||||||
messageHistoryGridListMask = new Ext.LoadMask(Ext.getBody(), {msg:_('ID_LOADING')});
|
messageHistoryGridListMask = new Ext.LoadMask(Ext.getBody(), {msg:_('ID_LOADING')});
|
||||||
messageHistoryGridListMask.show();
|
messageHistoryGridListMask.show();
|
||||||
|
|
||||||
var url = "caseMessageHistory_Ajax.php?actionAjax=sendMailMessage_JXP&APP_UID=" + APP_UID + "&APP_MSG_UID=" + APP_MSG_UID + "&APP_NUMBER=" + appNumber;
|
var url = "caseMessageHistory_Ajax.php?actionAjax=sendMailMessage_JXP&APP_UID=" + APP_UID + "&APP_MSG_UID=" + APP_MSG_UID + "&APP_NUMBER=" + appNumber;
|
||||||
ajaxPostRequest(url,'caseMessageHistory_RSP');
|
ajaxPostRequest(url, caseMessageHistory_RSP);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,9 +172,9 @@
|
|||||||
if (http_request.readyState === 4) {
|
if (http_request.readyState === 4) {
|
||||||
if (http_request.status === 200) {
|
if (http_request.status === 200) {
|
||||||
if (return_xml) {
|
if (return_xml) {
|
||||||
eval(callback_function + '(http_request.responseXML)');
|
callback_function(http_request.responseXML);
|
||||||
} else {
|
} else {
|
||||||
eval(callback_function + '(http_request.responseText, \'' + id + '\')');
|
callback_function(http_request.responseText, id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
alert('Error found on request:(Code: ' + http_request.status + ')');
|
alert('Error found on request:(Code: ' + http_request.status + ')');
|
||||||
@@ -242,7 +241,7 @@ var ActionTabFrameGlobal = '';
|
|||||||
var idHistory = historyGridListChangeLogGlobal.idHistory;
|
var idHistory = historyGridListChangeLogGlobal.idHistory;
|
||||||
|
|
||||||
var url = "caseHistory_Ajax.php?actionAjax=historyGridListChangeLogPanelBody_JXP&idHistory="+idHistory;
|
var url = "caseHistory_Ajax.php?actionAjax=historyGridListChangeLogPanelBody_JXP&idHistory="+idHistory;
|
||||||
ajaxPostRequest(url,'historyGridListChangeLogPanelBody_RSP');
|
ajaxPostRequest(url, historyGridListChangeLogPanelBody_RSP);
|
||||||
}
|
}
|
||||||
|
|
||||||
function historyGridListChangeLogPanel(){
|
function historyGridListChangeLogPanel(){
|
||||||
@@ -302,22 +301,9 @@ var ActionTabFrameGlobal = '';
|
|||||||
|
|
||||||
function caseMessageHistory_RSP (response, id) {
|
function caseMessageHistory_RSP (response, id) {
|
||||||
messageHistoryGridListMask.hide();
|
messageHistoryGridListMask.hide();
|
||||||
if (response === "") {
|
PMExt.notify( _('ID_SUCSESS'), response === "" ? _('ID_MAIL_SENT_SUCCESSFULLY') : response);
|
||||||
Ext.Msg.show({
|
Ext.getCmp('processesGrid').store.reload();
|
||||||
title: '',
|
Ext.getCmp('processesGrid').getView().refresh();
|
||||||
msg: _('ID_MAIL_SENT_SUCCESSFULLY'),
|
|
||||||
buttons: Ext.Msg.INFO,
|
|
||||||
animEl: 'elId',
|
|
||||||
icon: Ext.MessageBox.INFO,
|
|
||||||
buttons: Ext.MessageBox.OK
|
|
||||||
});
|
|
||||||
Ext.destroy(Ext.getCmp('processesGrid'));
|
|
||||||
store.destroy();
|
|
||||||
messageHistoryGridList();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert(response);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function messageHistoryGridList () {
|
function messageHistoryGridList () {
|
||||||
|
|||||||
Reference in New Issue
Block a user