Merge pull request #2169 from fsteeg/2168-suggest
Set suggestOptions.type to the selected reconciliation type
This commit is contained in:
commit
1c2ac45dee
@ -246,7 +246,7 @@ ReconStandardServicePanel.prototype._rewirePropertySuggests = function(type) {
|
||||
suggestOptions.key = null;
|
||||
suggestOptions.query_param_name = "prefix";
|
||||
if (type) {
|
||||
suggestOptions.ac_param = { schema: typeof type == "string" ? type : type.id };
|
||||
suggestOptions.type = typeof type == "string" ? type : type.id;
|
||||
}
|
||||
inputs.suggestP(suggestOptions);
|
||||
}
|
||||
|
@ -91,13 +91,6 @@ var CustomSuggest = {};
|
||||
var originalSuggestP = $.suggest.suggestP;
|
||||
$.suggest.suggestP = function(input, options) {
|
||||
originalSuggestP.call(this, input, options);
|
||||
|
||||
if ("ac_param" in options) {
|
||||
var ac_param = options.ac_param;
|
||||
if ("schema" in ac_param) {
|
||||
this.options.ac_param.schema = ac_param.schema;
|
||||
}
|
||||
}
|
||||
};
|
||||
$.suggest.suggestP.prototype = originalSuggestP.prototype;
|
||||
|
||||
@ -109,7 +102,6 @@ var CustomSuggest = {};
|
||||
{},
|
||||
$.suggest.suggest.defaults, {
|
||||
scoring: "schema",
|
||||
type: "/type/property",
|
||||
css: { pane: "fbs-pane fbs-pane-property" }
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user