mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-18 12:52:47 +00:00
Use in operator to check for onsearch support
This commit is contained in:
parent
cd9d934241
commit
b46ff7563d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ jQuery(function() {
|
||||||
var input = $('#search input');
|
var input = $('#search input');
|
||||||
if(input.length > 0) {
|
if(input.length > 0) {
|
||||||
// Setup incremental search on Articles pages
|
// Setup incremental search on Articles pages
|
||||||
if(input.get(0).hasOwnProperty('onsearch')) {
|
if('onsearch' in input.get(0)) {
|
||||||
console.log("Using search event for search");
|
console.log("Using search event for search");
|
||||||
$('#search label').hide();
|
$('#search label').hide();
|
||||||
input.bind("search", function() { refresh_search(this) });
|
input.bind("search", function() { refresh_search(this) });
|
||||||
|
|
Loading…
Reference in a new issue