From 40dbe79a03c5802d1db21e5c630732d977653e10 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Thu, 9 Aug 2012 14:17:35 +0000 Subject: [PATCH] FIXED - task 601: Allow selection of root element on JSON import http://code.google.com/p/google-refine/issues/detail?id=601 git-svn-id: http://google-refine.googlecode.com/svn/trunk@2527 7d457c2a-affb-35e4-300a-418c747d4874 --- .../core/scripts/index/parser-interfaces/json-parser-ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js b/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js index e0720f221..3801e45fa 100644 --- a/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js +++ b/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js @@ -211,7 +211,8 @@ Refine.JsonParserUI.prototype._showPickRecordNodesUI = function() { } } }; - renderNode(this._config.dom, elmts.domContainer, [ANONYMOUS_NODE_NAME]); + rootNode = $('
').addClass('node').addClass('indented').appendTo(elmts.domContainer); + renderNode(this._config.dom, rootNode, [ANONYMOUS_NODE_NAME]); }; Refine.JsonParserUI.prototype._scheduleUpdatePreview = function() {