Fix string tooltips not showing

This commit is contained in:
Adam Jimenez 2014-10-21 10:35:34 +01:00
commit bf8e9ddf45

View file

@ -344,7 +344,7 @@ var Autocomplete = function() {
doc = selected;
if (typeof doc == "string")
doc = {tooltipText: doc}
doc = {docText: doc}
if (!doc || !(doc.docHTML || doc.docText))
return this.hideDocTooltip();
this.showDocTooltip(doc);