mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Make search work in Safari again
This commit is contained in:
parent
a4610cc409
commit
ff222c1cf2
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ jQuery(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh_search(elem) {
|
function refresh_search(elem) {
|
||||||
var input = elem || $(this); // Pass a jQuery object or use this
|
var input = $(elem);
|
||||||
var value = input.val() || "";
|
var value = input.val() || "";
|
||||||
|
|
||||||
var q = value.toLowerCase();
|
var q = value.toLowerCase();
|
||||||
|
@ -33,7 +33,7 @@ jQuery(function() {
|
||||||
if(input.get(0).hasOwnProperty('onsearch')) {
|
if(input.get(0).hasOwnProperty('onsearch')) {
|
||||||
console.log("Using search event for search");
|
console.log("Using search event for search");
|
||||||
$('#search label').hide();
|
$('#search label').hide();
|
||||||
input.bind("search", refresh_search);
|
input.bind("search", function() { refresh_search(this) });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Poll the field for its value while it has focus
|
// Poll the field for its value while it has focus
|
||||||
|
|
Loading…
Reference in a new issue