equal
deleted
inserted
replaced
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 |