Fixed bug in recon dialog: previously, manually specified type didn't get its id transmitted properly to the server
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1695 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
8030595254
commit
2a77e7bd8a
@ -247,7 +247,7 @@ ReconStandardServicePanel.prototype._rewirePropertySuggests = function(type) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ReconStandardServicePanel.prototype._isInFreebaseIdentifierSpace = function() {
|
ReconStandardServicePanel.prototype._isInFreebaseIdentifierSpace = function() {
|
||||||
return ReconciliationManager.isFreebaseId(this._service.identifierSpace);
|
return ReconciliationManager.isFreebaseIdOrMid(this._service.identifierSpace);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReconStandardServicePanel.prototype._isInFreebaseSchemaSpace = function() {
|
ReconStandardServicePanel.prototype._isInFreebaseSchemaSpace = function() {
|
||||||
@ -257,12 +257,13 @@ ReconStandardServicePanel.prototype._isInFreebaseSchemaSpace = function() {
|
|||||||
ReconStandardServicePanel.prototype.start = function() {
|
ReconStandardServicePanel.prototype.start = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var type = this._isInFreebaseIdentifierSpace() ?
|
var type = this._elmts.typeInput.data("data.suggest");
|
||||||
this._elmts.typeInput.data("data.suggest") :
|
if (!(type)) {
|
||||||
{
|
type = {
|
||||||
id: this._elmts.typeInput[0].value,
|
id: this._elmts.typeInput[0].value,
|
||||||
name: this._elmts.typeInput[0].value
|
name: this._elmts.typeInput[0].value
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
var choices = this._panel.find('input[name="type-choice"]:checked');
|
var choices = this._panel.find('input[name="type-choice"]:checked');
|
||||||
if (choices !== null && choices.length > 0) {
|
if (choices !== null && choices.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user