Lint cleanup
This commit is contained in:
parent
574c4033ab
commit
146c599deb
|
@ -94,9 +94,9 @@ lemur.factory('LemurRestangular', function (Restangular, $location, $auth) {
|
||||||
RestangularConfigurer.setErrorInterceptor(function(response) {
|
RestangularConfigurer.setErrorInterceptor(function(response) {
|
||||||
if (response.status == 400) {
|
if (response.status == 400) {
|
||||||
if (response.data.message) {
|
if (response.data.message) {
|
||||||
var data = "";
|
var data = '';
|
||||||
_.each(response.data.message, function (value, key) {
|
_.each(response.data.message, function (value, key) {
|
||||||
data = data + " " + key + " " + value;
|
data = data + ' ' + key + ' ' + value;
|
||||||
});
|
});
|
||||||
response.data.message = data;
|
response.data.message = data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ angular.module('lemur')
|
||||||
});
|
});
|
||||||
return LemurRestangular.all('authorities');
|
return LemurRestangular.all('authorities');
|
||||||
})
|
})
|
||||||
.service('AuthorityService', function ($location, AuthorityApi, DefaultService, toaster) {
|
.service('AuthorityService', function ($location, AuthorityApi, DefaultService) {
|
||||||
var AuthorityService = this;
|
var AuthorityService = this;
|
||||||
AuthorityService.findAuthorityByName = function (filterValue) {
|
AuthorityService.findAuthorityByName = function (filterValue) {
|
||||||
return AuthorityApi.getList({'filter[name]': filterValue})
|
return AuthorityApi.getList({'filter[name]': filterValue})
|
||||||
|
|
|
@ -89,7 +89,7 @@ angular.module('lemur')
|
||||||
});
|
});
|
||||||
return LemurRestangular.all('certificates');
|
return LemurRestangular.all('certificates');
|
||||||
})
|
})
|
||||||
.service('CertificateService', function ($location, CertificateApi, LemurRestangular, DefaultService, toaster) {
|
.service('CertificateService', function ($location, CertificateApi, LemurRestangular, DefaultService) {
|
||||||
var CertificateService = this;
|
var CertificateService = this;
|
||||||
CertificateService.findCertificatesByName = function (filterValue) {
|
CertificateService.findCertificatesByName = function (filterValue) {
|
||||||
return CertificateApi.getList({'filter[name]': filterValue})
|
return CertificateApi.getList({'filter[name]': filterValue})
|
||||||
|
|
Loading…
Reference in New Issue