mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
브라우저에 따라 존재하는 정규식 버그때문에 메뉴가 검색되지 않던 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6976 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
21f5da7d32
commit
bfd89da2f8
1 changed files with 5 additions and 1 deletions
|
|
@ -124,9 +124,12 @@ jQuery(function($){
|
||||||
nav.find('li li > a').each(function(){
|
nav.find('li li > a').each(function(){
|
||||||
var text = $(this).text();
|
var text = $(this).text();
|
||||||
|
|
||||||
if (regex.test(text)) {
|
if (regex.exec(text) != null) {
|
||||||
$(this).parent().clone().appendTo(result);
|
$(this).parent().clone().appendTo(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fix regular expression bug
|
||||||
|
regex.exec('');
|
||||||
});
|
});
|
||||||
|
|
||||||
nav.hide();
|
nav.hide();
|
||||||
|
|
@ -147,6 +150,7 @@ jQuery(function($){
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// logout
|
// logout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue