Commit 9f978d8d authored by Hervé Ménager's avatar Hervé Ménager

code gardening, make jshint happy

parent a77a4f1e
......@@ -7,12 +7,12 @@ angular.module('biowebEvolApp')
$http({
method: 'GET',
url: '/api/edam/subsets/topics'
}).success(function(data, status) {
var map = {}
}).success(function(data) {
var map = {};
topicsList.resolve(data);
_.map(data, function(topic) {
topic.shortId = topic['_id'].split('/').pop();
map[topic['_id']] = topic;
topic.shortId = topic._id.split('/').pop();
map[topic._id] = topic;
map[topic.shortId] = topic;
});
topicsMap.resolve(map);
......
......@@ -2,5 +2,5 @@
angular.module('biowebEvolApp')
.service('news', function Edam($resource) {
return $resource('/api/news');
});
return $resource('/api/news');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment