asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xi...@apache.org
Subject asterixdb git commit: Fix JSON Format display multiple record issue
Date Fri, 31 Mar 2017 21:21:42 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 5914aa83d -> dc1893f96


Fix JSON Format display multiple record issue

Assign name back to anonymous function for recursive call.

Change-Id: I85eda5b1873024d84df1a2ca803fe1d5a665996c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1640
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>


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

Branch: refs/heads/master
Commit: dc1893f96ac5ac92bdc004b7daa3ad85a895c3d1
Parents: 5914aa8
Author: Xikui Wang <xkkwww@gmail.com>
Authored: Thu Mar 30 13:03:20 2017 -0700
Committer: Xikui Wang <xkkwww@gmail.com>
Committed: Fri Mar 31 14:21:26 2017 -0700

----------------------------------------------------------------------
 .../src/main/resources/webui/static/js/jquery.json-viewer.js   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/dc1893f9/asterixdb/asterix-app/src/main/resources/webui/static/js/jquery.json-viewer.js
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/main/resources/webui/static/js/jquery.json-viewer.js
b/asterixdb/asterix-app/src/main/resources/webui/static/js/jquery.json-viewer.js
index 35ef5a1..5e8a79e 100644
--- a/asterixdb/asterix-app/src/main/resources/webui/static/js/jquery.json-viewer.js
+++ b/asterixdb/asterix-app/src/main/resources/webui/static/js/jquery.json-viewer.js
@@ -154,11 +154,11 @@
       if (options.collapsed == true) {
         $(this).find('a.json-toggle').click();
         var lvl = options.level;
-        $(this).each(function() {
+        $(this).each(function collapse_func() {
           lvl = lvl-1;
           if (lvl >= 0) {
-          	$(this).children('a.json-toggle').click();
-          	$(this).children('ul.json-dict').children().each(cfun);
+            $(this).children('a.json-toggle').click();
+            $(this).children('ul.json-dict').children().each(collapse_func);
           }
           lvl = lvl+1;
         });


Mime
View raw message