Add switch to change field list between current and all

This commit is contained in:
Rashid Khan
2013-10-15 11:26:41 -07:00
parent dc242236d5
commit c52e4006d7
4 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ function (angular, _, config) {
if(!_.isUndefined(n) && n.length) {
// Only get the mapping for indices we don't know it for
var indices = _.difference(n,_.keys(self.mapping));
// Only get the mapping if there are indices
// Only get the mapping if there are new indices
if(indices.length > 0) {
self.map(indices).then(function(result) {
self.mapping = _.extend(self.mapping,result);