Do not set datatype on API calls where there is no response. causes jqeury to error. (revert fb94764
)
This commit is contained in:
parent
836e1e563f
commit
6af283b947
|
@ -70,7 +70,6 @@ function initApiService() {
|
|||
url: self.baseUrl + '/accounts/password-hint',
|
||||
data: JSON.stringify(request),
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
dataType: 'json',
|
||||
success: function (response) {
|
||||
success();
|
||||
},
|
||||
|
@ -87,7 +86,6 @@ function initApiService() {
|
|||
url: self.baseUrl + '/accounts/register',
|
||||
data: JSON.stringify(request),
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
dataType: 'json',
|
||||
success: function (response) {
|
||||
success();
|
||||
},
|
||||
|
@ -258,7 +256,6 @@ function initApiService() {
|
|||
$.ajax({
|
||||
type: 'POST',
|
||||
url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token,
|
||||
dataType: 'json',
|
||||
success: function (response) {
|
||||
success();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue