src/ztfy/myams/resources/js/myams.js
changeset 216 c390a4b8ca80
parent 213 48092a18c2c0
child 223 662e8fc90c14
equal deleted inserted replaced
215:848894fde5fc 216:c390a4b8ca80
   831 			response = ams.ajax.getResponse(response);
   831 			response = ams.ajax.getResponse(response);
   832 			if (response.contentType === 'json') {
   832 			if (response.contentType === 'json') {
   833 				ams.ajax.handleJSON(response.data);
   833 				ams.ajax.handleJSON(response.data);
   834 			} else {
   834 			} else {
   835 				var title = error || event.statusText || event.type;
   835 				var title = error || event.statusText || event.type;
   836 				var message = response.responseText;
   836 				var message = response.responseText || response.data;
   837 				ams.skin.messageBox('error', {
   837 				ams.skin.messageBox('error', {
   838 					title: ams.i18n.ERROR_OCCURED,
   838 					title: ams.i18n.ERROR_OCCURED,
   839 					content: '<h4>' + title + '</h4><p>' + (message || '') + '</p>',
   839 					content: '<h4>' + title + '</h4><p>' + (message || '') + '</p>',
   840 					icon: 'fa fa-warning animated shake',
   840 					icon: 'fa fa-warning animated shake',
   841 					timeout: 10000
   841 					timeout: 10000