mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 01:29:58 +09:00
#18634201 : if navigation input does not exist, skip event
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7220 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d29b2005aa
commit
9bf9f38de8
1 changed files with 3 additions and 1 deletions
|
|
@ -88,6 +88,8 @@ jQuery(function($){
|
||||||
var btn = $('#search_nav button:first');
|
var btn = $('#search_nav button:first');
|
||||||
var result = $('<ul class="_result" />');
|
var result = $('<ul class="_result" />');
|
||||||
|
|
||||||
|
if(inp.length == 0) return;
|
||||||
|
|
||||||
nav.after( result.hide() );
|
nav.after( result.hide() );
|
||||||
|
|
||||||
inp.keydown(function(event){
|
inp.keydown(function(event){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue