Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Tom Morris 2014-07-03 15:38:21 -04:00
commit 31a3fdb67b
4 changed files with 12 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<div class="dialog-body" bind="dialogBody">
<div bind="unalignedCase" style="display: none;" class="freebase-loading-tripleloader-message">
<h2 bind="no_triples_dataset"></h2>
<p bind="warning_aligned"><button class="button" bind="alignButton"></button></p>
<p bind="warning_aligned"></p><button class="button" bind="alignButton"></button>
</div>
<div bind="functionalCase" style="display: none;">
<div class="refine-tabs" bind="functionalTabs">
@ -64,4 +64,4 @@
<button class="button button-primary button-disabled" bind="loadButton" id="freebase-loading-load" disabled></button>
</td>
</tr></table></div></div>
</div>
</div>

View File

@ -76,6 +76,8 @@ public class ImportingJob implements Jsonizable {
JSONUtilities.safePut(cfg, "hasData", false);
this.config = cfg;
lastTouched = System.currentTimeMillis();
dir.mkdirs();
}

View File

@ -66,6 +66,9 @@ Refine.JsonParserUI.prototype.confirmReadyToCreateProject = function() {
};
Refine.JsonParserUI.prototype.getOptions = function() {
if(!this._config.recordPath){
this._setRecordPath(this._config.defaultRecordPath);
}
var options = {
recordPath: this._config.recordPath
};
@ -236,6 +239,7 @@ Refine.JsonParserUI.prototype._showPickRecordNodesUI = function() {
}
};
rootNode = $('<div>').addClass('node').addClass('indented').appendTo(elmts.domContainer);
this._config.defaultRecordPath=[ANONYMOUS_NODE_NAME];
renderNode(this._config.dom, rootNode, [ANONYMOUS_NODE_NAME]);
};

View File

@ -66,6 +66,9 @@ Refine.XmlParserUI.prototype.confirmReadyToCreateProject = function() {
};
Refine.XmlParserUI.prototype.getOptions = function() {
if(!this._config.recordPath){
this._setRecordPath(this._config.defaultRecordPath);
}
var options = {
recordPath: this._config.recordPath
};
@ -229,6 +232,7 @@ Refine.XmlParserUI.prototype._showPickRecordElementsUI = function() {
}
};
if (this._config.dom) {
this._config.defaultRecordPath=[];
renderNode(this._config.dom, elmts.domContainer, []);
}
};