From 88462c50b9d606b91f8b9737e1301af5279576c0 Mon Sep 17 00:00:00 2001 From: MichaelDaum Date: Tue, 14 May 2013 18:30:26 +0000 Subject: [PATCH] Item12497: adjusting to jquery-ui 1.10.3 git-svn-id: http://svn.foswiki.org/trunk/SolrPlugin@16733 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- .../jquery.autosuggest.uncompressed.css | 7 ------ .../jquery.autosuggest.uncompressed.js | 23 ++++++++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.css b/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.css index acd33d2..f7337eb 100644 --- a/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.css +++ b/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.css @@ -12,13 +12,6 @@ background-position:right center !important; background-repeat:no-repeat !important; } -.ui-autosuggest.ui-menu .ui-menu-item a.ui-state-hover, -.ui-autosuggest.ui-menu .ui-menu-item a.ui-state-active { - background-color:#E1F3FD; - text-shadow:#F2F9FD; - border-color:#F2F9FD; - color:inherit; -} .ui-autosuggest .ui-menu-item table { table-layout:fixed; height:48px; diff --git a/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.js b/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.js index 6c63216..ad71e90 100644 --- a/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.js +++ b/pub/System/SolrPlugin/jquery.autosuggest.uncompressed.js @@ -30,13 +30,9 @@ }, select: function(event, data) { - var self = $(this).data("autosuggest"); - - if (typeof(data.item.url) !== 'undefined') { - $.blockUI({message:"

"+self.options.locales.loading+"

"}); + if (event.keyCode == 13) { window.location.href = data.item.url; } - return false; } }, @@ -65,7 +61,7 @@ title: self.options.locales[key] || key, more: self.options.locales.more, moreUrl: foswiki.getPreference("SCRIPTURLPATH")+"/System/WebHome" - }).appendTo(ul); + }).data("ui-autocomplete-item", {value:''}).appendTo(ul); ul.find("a.ui-autosuggest-more").click(function() { window.location.href = $(this).attr("href"); @@ -74,7 +70,7 @@ }); $.each(section, function(index, item) { - self._renderItem(ul, item); + self._renderItemData(ul, item); }); }); }, @@ -103,10 +99,21 @@ description: typeof(item.container_title) !== 'undefined' ? item.container_title : '' }); - return $row.data("item.autocomplete", item).appendTo(ul); + return $row.appendTo(ul); }, _normalize: function( items ) { return items; // don't normalize + }, + _move: function(direction, event) { + var elem; + + this._super(direction, event); + + elem = this.menu.active; + + if ($(elem).is(".ui-widget-header")) { + this._super(direction, event); + } } });