fix issue #1060 to skip the checkbox deselect when clicking on the clustering text candidate

This commit is contained in:
jackyq2015 2015-09-11 16:28:15 -04:00
parent ee38f9edde
commit 2c48a56c3b

View File

@ -175,7 +175,9 @@ ClusteringDialog.prototype._renderTable = function(clusters) {
cluster.value = value; cluster.value = value;
parent.find("input[type='text']").val(value); parent.find("input[type='text']").val(value);
parent.find("input[type='checkbox']").attr('checked', true).change(); var checkbox = parent.find("input[type='checkbox']");
if (!checkbox.attr('checked'))
checkbox.attr('checked', true).change();
return false; return false;
}; };
for (var c = 0; c < choices.length; c++) { for (var c = 0; c < choices.length; c++) {