incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaven...@apache.org
Subject [05/20] git commit: remove duplicate families from search results
Date Fri, 12 Sep 2014 02:44:58 GMT
remove duplicate families from search results


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/c0d635b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/c0d635b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/c0d635b3

Branch: refs/heads/master
Commit: c0d635b327c4fdcfcb832c66e6afebf7454cc9e1
Parents: 99007ce
Author: Andrew Avenoso <andrew.va@gmail.com>
Authored: Thu Sep 11 22:40:27 2014 -0400
Committer: Andrew Avenoso <andrew.va@gmail.com>
Committed: Thu Sep 11 22:40:27 2014 -0400

----------------------------------------------------------------------
 blur-console/src/main/webapp/js/blurconsole.utils.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c0d635b3/blur-console/src/main/webapp/js/blurconsole.utils.js
----------------------------------------------------------------------
diff --git a/blur-console/src/main/webapp/js/blurconsole.utils.js b/blur-console/src/main/webapp/js/blurconsole.utils.js
index 38dd3e9..3534207 100644
--- a/blur-console/src/main/webapp/js/blurconsole.utils.js
+++ b/blur-console/src/main/webapp/js/blurconsole.utils.js
@@ -75,8 +75,12 @@ blurconsole.utils = (function(){
     }
 
     var families = [];
+    var family;
     $.each(matches, function(idx, match) {
-      families.push(match.split('.')[0]);
+      family = match.split('.')[0];
+      if(families.indexOf(family) < 0) {
+        families.push(family);
+      }
     });
     return families;
   }


Mime
View raw message