From a6da9bff958c65ed7664f62740da1c116a770b22 Mon Sep 17 00:00:00 2001 From: gologames Date: Mon, 21 Oct 2019 17:30:46 +0300 Subject: [PATCH] Fix #145 Easyautocomplete not working on MatrixDynamic questions with choicesByUrl --- src/easy-autocomplete.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/easy-autocomplete.js b/src/easy-autocomplete.js index 1ab56f1e..fd5ad016 100644 --- a/src/easy-autocomplete.js +++ b/src/easy-autocomplete.js @@ -19,16 +19,7 @@ function init(Survey, $) { Survey.JsonObject.metaData.addProperty("text", "choices:itemvalues"); Survey.JsonObject.metaData.addProperty("text", { name: "choicesByUrl:restfull", - className: "ChoicesRestfull", - onGetValue: function(obj) { - return obj && obj.choicesByUrl && obj.choicesByUrl.getData(); - }, - onSetValue: function(obj, value) { - if (!obj.choicesByUrl) { - obj.choicesByUrl = new Survey.ChoicesRestfull(); - } - obj.choicesByUrl.setData(value); - } + className: "ChoicesRestfull" }); Array.prototype.push.apply( Survey.matrixDropdownColumnTypes.text.properties,