Skip to content

Commit

Permalink
Item12497: adjusting to jquery-ui 1.10.3
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/SolrPlugin@16733 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed May 14, 2013
1 parent 516c58e commit 88462c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
7 changes: 0 additions & 7 deletions pub/System/SolrPlugin/jquery.autosuggest.uncompressed.css
Expand Up @@ -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;
Expand Down
23 changes: 15 additions & 8 deletions pub/System/SolrPlugin/jquery.autosuggest.uncompressed.js
Expand Up @@ -30,13 +30,9 @@
},

select: function(event, data) {
var self = $(this).data("autosuggest");

if (typeof(data.item.url) !== 'undefined') {
$.blockUI({message:"<h1>"+self.options.locales.loading+"</h1>"});
if (event.keyCode == 13) {
window.location.href = data.item.url;
}

return false;
}
},
Expand Down Expand Up @@ -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");
Expand All @@ -74,7 +70,7 @@
});

$.each(section, function(index, item) {
self._renderItem(ul, item);
self._renderItemData(ul, item);
});
});
},
Expand Down Expand Up @@ -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);
}
}
});

Expand Down

0 comments on commit 88462c5

Please sign in to comment.