Browse Source

fix lint issues with ===

pull/16/head
Kyle Spearrin 9 years ago
parent
commit
e1a6bb1ddc
  1. 4
      src/Web/wwwroot/app/apiInterceptor.js
  2. 2
      src/Web/wwwroot/app/services/validationService.js

4
src/Web/wwwroot/app/apiInterceptor.js

@ -7,7 +7,7 @@ angular @@ -7,7 +7,7 @@ angular
return config;
},
response: function (response) {
if (response.status === 401 || response.status == 403) {
if (response.status === 401 || response.status === 403) {
$injector.get('authService').logOut();
$injector.get('$state').go('frontend.login.info').then(function () {
toastr.warning('Your login session has expired.', 'Logged out');
@ -17,7 +17,7 @@ angular @@ -17,7 +17,7 @@ angular
return response || $q.when(response);
},
responseError: function (rejection) {
if (rejection.status === 401 || rejection.status == 403) {
if (rejection.status === 401 || rejection.status === 403) {
$injector.get('authService').logOut();
$injector.get('$state').go('frontend.login.info').then(function () {
toastr.warning('Your login session has expired.', 'Logged out');

2
src/Web/wwwroot/app/services/validationService.js

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
var pushError = true;
for (var i = 0; i < form.$errors.length; i++) {
if (form.$errors[i] == errorMessage) {
if (form.$errors[i] === errorMessage) {
pushError = false;
break;
}

Loading…
Cancel
Save