incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [8/8] git commit: Some cleanup to the new facet feature in the console
Date Thu, 11 Dec 2014 16:50:00 GMT
Some cleanup to the new facet feature in the console


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

Branch: refs/heads/master
Commit: cf2a566f08fd0929c81b1896bfad59d7a6cfbaf4
Parents: 27b9252
Author: chrisrohr <rohr.chris@gmail.com>
Authored: Thu Dec 11 16:49:36 2014 +0000
Committer: chrisrohr <rohr.chris@gmail.com>
Committed: Thu Dec 11 16:49:36 2014 +0000

----------------------------------------------------------------------
 blur-console/src/main/webapp/js/blurconsole.facets.js | 2 +-
 blur-console/src/main/webapp/js/blurconsole.search.js | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/cf2a566f/blur-console/src/main/webapp/js/blurconsole.facets.js
----------------------------------------------------------------------
diff --git a/blur-console/src/main/webapp/js/blurconsole.facets.js b/blur-console/src/main/webapp/js/blurconsole.facets.js
index 9900f6c..a512505 100644
--- a/blur-console/src/main/webapp/js/blurconsole.facets.js
+++ b/blur-console/src/main/webapp/js/blurconsole.facets.js
@@ -72,7 +72,7 @@ blurconsole.facets = (function () {
     blurconsole.shell.changeAnchorPart({
       tab: 'search',
       _tab: {
-        query: encodeURIComponent(initialQuery + ' +(+' + family + '.' + column + ':(' +
$(evt.currentTarget).data('term') + '))'),
+        query: encodeURIComponent('+(' + initialQuery + ') +(+' + family + '.' + column +
':(' + $(evt.currentTarget).data('term') + '))'),
         table: stateMap.table,
         rr: 'rowrow'
       }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/cf2a566f/blur-console/src/main/webapp/js/blurconsole.search.js
----------------------------------------------------------------------
diff --git a/blur-console/src/main/webapp/js/blurconsole.search.js b/blur-console/src/main/webapp/js/blurconsole.search.js
index fd63b5c..2152e83 100644
--- a/blur-console/src/main/webapp/js/blurconsole.search.js
+++ b/blur-console/src/main/webapp/js/blurconsole.search.js
@@ -455,7 +455,9 @@ blurconsole.search = (function () {
   function _drawResults(evt, families) {
     var results = blurconsole.model.search.getResults();
     jqueryMap.$countHolder.html('<small>Found ' + blurconsole.utils.formatNumber(blurconsole.model.search.getTotal())
+ ' total results</small>');
-    jqueryMap.$facetTrigger.show();
+    if (blurconsole.model.search.getTotal() > 0) {
+      jqueryMap.$facetTrigger.show();
+    }
 
     if (families != null) {
       $.each(families, function(i, fam) {


Mime
View raw message