##// END OF EJS Templates
alerts: fixed sweet alert for users page.
marcink -
r4325:3f870ba2 default
parent child Browse files
Show More
@@ -86,9 +86,8 b' var _showAuthToken = function (authToken'
86 })
86 })
87 .fail(function (jqXHR, textStatus, errorThrown) {
87 .fail(function (jqXHR, textStatus, errorThrown) {
88 //reject("Failed to fetch Authentication Token")
88 //reject("Failed to fetch Authentication Token")
89 var message = formatErrorMessage(jqXHR, textStatus, errorThrown)
89 var message = formatErrorMessage(jqXHR, textStatus, errorThrown);
90 Swal.showValidationMessage('Request failed: {0}'.format(message)
90 ajaxErrorSwal(message);
91 )
92 });
91 });
93 })
92 })
94 }
93 }
@@ -109,7 +109,7 b' function formatErrorMessage(jqXHR, textS'
109 function ajaxErrorSwal(message) {
109 function ajaxErrorSwal(message) {
110 Swal.fire({
110 Swal.fire({
111 icon: 'error',
111 icon: 'error',
112 title: _gettext('Ajax Error'),
112 title: _gettext('Ajax Request Error'),
113 html: '<span style="white-space: pre-line">{0}</span>'.format(message),
113 html: '<span style="white-space: pre-line">{0}</span>'.format(message),
114 showClass: {
114 showClass: {
115 popup: 'swal2-noanimation',
115 popup: 'swal2-noanimation',
General Comments 0
You need to be logged in to leave comments. Login now