PMCORE-543
This commit is contained in:
@@ -1079,16 +1079,25 @@ Ext.onReady(function(){
|
|||||||
try {
|
try {
|
||||||
var data = Ext.util.JSON.decode(result.responseText);
|
var data = Ext.util.JSON.decode(result.responseText);
|
||||||
if (data.status == true) {
|
if (data.status == true) {
|
||||||
|
if (!isBrowserIE()) {
|
||||||
// The case was cancelled
|
// The case was cancelled
|
||||||
parent.notify('', _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM)));
|
parent.notify('', _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM)));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (!isBrowserIE()) {
|
||||||
// The case wasn't cancel
|
// The case wasn't cancel
|
||||||
parent.notify('', data.msg);
|
parent.notify('', data.msg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
parent.updateCasesTree();
|
parent.updateCasesTree();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (isBrowserIE()) {
|
||||||
|
Ext.MessageBox.alert(_('ID_FAILED'), _('ID_SOMETHING_WRONG'));
|
||||||
|
} else {
|
||||||
parent.notify('', _('ID_SOMETHING_WRONG'));
|
parent.notify('', _('ID_SOMETHING_WRONG'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
location.href = 'casesListExtJs';
|
location.href = 'casesListExtJs';
|
||||||
},
|
},
|
||||||
failure: function (result, request) {
|
failure: function (result, request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user