incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject git commit: fixed a bug with zero results
Date Fri, 30 May 2014 18:06:52 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/console-v2 1aca99b5f -> 5fa8c6480


fixed a bug with zero 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/5fa8c648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/5fa8c648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/5fa8c648

Branch: refs/heads/console-v2
Commit: 5fa8c6480b6276cb99bfe7edc66a8f417bef279e
Parents: 1aca99b
Author: chrisrohr <rohr.chris@gmail.com>
Authored: Fri May 30 18:06:10 2014 +0000
Committer: chrisrohr <rohr.chris@gmail.com>
Committed: Fri May 30 18:06:10 2014 +0000

----------------------------------------------------------------------
 contrib/blur-console/src/main/webapp/js/blurconsole.search.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5fa8c648/contrib/blur-console/src/main/webapp/js/blurconsole.search.js
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/main/webapp/js/blurconsole.search.js b/contrib/blur-console/src/main/webapp/js/blurconsole.search.js
index fb2b03d..63b6bd8 100644
--- a/contrib/blur-console/src/main/webapp/js/blurconsole.search.js
+++ b/contrib/blur-console/src/main/webapp/js/blurconsole.search.js
@@ -228,7 +228,7 @@ blurconsole.search = (function () {
 					table = '<table class="table table-condensed table-hover table-bordered"><thead><tr>',
 					cols;
 
-				if (famResults.length === 0) {
+				if (typeof famResults === 'undefined' || famResults.length === 0) {
 					famHolder.html('<div class="alert alert-info">No Data Found</div>');
 				} else {
 					if (blurconsole.utils.keys(famResults[0]).indexOf('rowid') === -1 ) {


Mime
View raw message