diff --git a/ui/rules.autocomplete.js b/ui/rules.autocomplete.js index a888fd5..6aacaa4 100644 --- a/ui/rules.autocomplete.js +++ b/ui/rules.autocomplete.js @@ -105,12 +105,12 @@ Drupal.rules = Drupal.rules || {}; // Since jquery autocomplete by default strips html text by using .text() // we need our own _renderItem function to display html content. - this.jqObject.data("autocomplete")._renderItem = function(ul, item) { - return $("
  • ").data("item.autocomplete", item).append("" + item.label + "").appendTo(ul); + this.jqObject.data("ui-autocomplete")._renderItem = function(ul, item) { + return $("
  • ").data("ui-autocomplete-item", item).append("" + item.label + "").appendTo(ul); }; // Override close function - this.jqObject.data("autocomplete").close = function (event) { + this.jqObject.data("ui-autocomplete").close = function (event) { var value = this.element.val(); // If the selector is not a group, then trigger the close event an and // hide the menu.